New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

iatstuti/google-cse

Google Custom Search Engine API wrapper
123 9
Install
composer require iatstuti/google-cse
Latest Version:1.0.1
PHP:>=5.4.0
License:MIT
Last Updated:Feb 10, 2015
Links: GitHub  ·  Packagist
Maintainer: michaeldyrynda

laravel-google-cse

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.

Related Packages

revolution/laravel-google-sheets

Google Sheets API v4

3,913,547 450
pulkitjalan/google-apiclient

Google api php client wrapper with Cloud Platform and Laravel support

3,185,887 256
lcmaquino/googleoauth2

GoogleOAuth2 adds to Laravel a service provider for Google OAuth 2.0 authenticat...

39,132 4
revolution/laravel-google-searchconsole

Google SearchConsole API for Laravel

10,735 19

Version History

Version Released PHP License
1.0.1 >=5.4.0 MIT
1.0.0 >=5.4.0 MIT