iatstuti/google-cse is a Laravel package for google custom search engine api wrapper.
It currently has 9 GitHub stars and 123 downloads on Packagist (latest version 1.0.1).
Install it with composer require iatstuti/google-cse.
Discover more Laravel packages by iatstuti
or browse all Laravel packages to compare alternatives.
Last updated
Laravel 4.x wrapper for the Google Custom Search Engine API. This may work for Laravel 5, but has not been tested.
Note: You will need an API key and search engine configured in your Google Custom Search control panel.
composer require iatstuti/google-cse
Once installed, add the Service Provider into app/config/app.php
'providers' => array(
// ...
'Iatstuti\GoogleCse\GoogleCseServiceProvider',
// ...
),
If you wish to use an alias, set the following (also in app/config/app.php)
'aliases' => array(
// ...
'Iatstuti\GoogleCse\Facades\LaravelFacade',
// ...
),
Lastly, publish the package configuration and update the configuration in app/config/packages/iatstuti/google-cse/cse.php.
php artisan config:publish iatstuti/google-cse
To use the package, you can make a call to GoogleCse::search($term).
Calls to this this method will return an array of items from the JSON structure outlined here.