PHPackages                             williancarminato/google-cse-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Search &amp; Filtering](/categories/search)
4. /
5. williancarminato/google-cse-bundle

ActiveSymfony-bundle[Search &amp; Filtering](/categories/search)

williancarminato/google-cse-bundle
==================================

A Symfony2 Bundle who uses Google Custom Search API

2.2.x-dev(12y ago)6851MITPHP &gt;=5.3.3

Since Mar 24Compare

[ Source](https://github.com/williancarminato/GoogleCseBundle)[ Packagist](https://packagist.org/packages/williancarminato/google-cse-bundle)[ Docs](http://github.com/williancarminato/GoogleCseBundle)[ RSS](/packages/williancarminato-google-cse-bundle/feed)WikiDiscussions Synced yesterday

READMEChangelogDependencies (1)Versions (2)Used By (0)

GoogleCseBundle [![Build Status](https://camo.githubusercontent.com/8d2f75ef713a7001c2762749318345859bf9cbe745c9ab997ac1a41383c73dfa/68747470733a2f2f7472617669732d63692e6f72672f77696c6c69616e6361726d696e61746f2f476f6f676c6543736542756e646c652e706e673f6272616e63683d646576656c6f70)](https://travis-ci.org/williancarminato/GoogleCseBundle) [![SensioLabsInsight](https://camo.githubusercontent.com/2eb0a6a465d145669b49260dbfe9e7467e15be0db9303251e4858b0ab6a5a178/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f38636331656332312d643437352d346532362d396537662d6432623766633836613466362f736d616c6c2e706e67)](https://insight.sensiolabs.com/projects/8cc1ec21-d475-4e26-9e7f-d2b7fc86a4f6)
========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#googlecsebundle--)

A Symfony2 Bundle who uses Google Custom Search API.

Feature
-------

[](#feature)

- Google Custom Search feature, see [CSE](https://developers.google.com/custom-search/json-api/v1/introduction)

Requirements
------------

[](#requirements)

- PHP 5.4+
- Search engine ID ([Creating a Custom Search Engine](https://developers.google.com/custom-search/docs/tutorial/creatingcse))
- API key that can be obtained from the [Google Cloud Console](https://cloud.google.com/console)

Instalation
-----------

[](#instalation)

Package available on [Packagist](https://packagist.org/packages/williancarminato/google-cse-bundle). Autoloading with [Composer](http://getcomposer.org/) is [PSR-0](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md) compatible.

Usage
-----

[](#usage)

Let's suppose that you have a form with the input text 'search\_term'. In your controller you can get the results after form submission like this:

```
