2017 © Pedro Peláez
 

library googlesearch

Get searchresults from a Google Custom Search Engine

image

spatie/googlesearch

Get searchresults from a Google Custom Search Engine

  • Wednesday, March 7, 2018
  • by Spatie
  • Repository
  • 6 Watchers
  • 52 Stars
  • 4,958 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 17 Forks
  • 1 Open issues
  • 14 Versions
  • 1 % Grown

The README.md

Get searchresults from a Google Custom Search Engine

Latest Version Build status SensioLabsInsight Quality Score StyleCI Total Downloads Software License, (*1)

This package can fetch results for the paid version of a Google Custom Search Engine. It returns an array with searchresults. You'll need to know how to set up a Google Custom Search Engine., (*2)

Spatie is a webdesign agency in Antwerp, Belgium. You'll find an overview of all our open source projects on our website., (*3)

Laravel compatibility

Laravel googlesearch
4.2.x 1.x
5.x 2.x

Postcardware

You're free to use this package (it's MIT-licensed), but if it makes it to your production environment you are required to send us a postcard from your hometown, mentioning which of our package(s) you are using., (*4)

Our address is: Spatie, Samberstraat 69D, 2060 Antwerp, Belgium., (*5)

The best postcards will get published on the open source page on our website., (*6)

Installation

This package can be installed through Composer., (*7)

composer require spatie/googlesearch

When using Laravel there is a service provider that you can make use of., (*8)


// Laravel 5: config/app.php 'providers' => [ '...', 'Spatie\GoogleSearch\GoogleSearchServiceProvider' ];

GoogleSearch also comes with a facade, which provides an easy way to call the the class., (*9)


// Laravel 5: config/app.php 'aliases' => [ ... 'GoogleSearch' => 'Spatie\GoogleSearch\Facades\GoogleSearch', ... ]

You can publish the config file of the package using artisan, (*10)

php artisan vendor:publish --provider="Spatie\GoogleSearch\GoogleSearchServiceProvider"

This command creates a file within your config directory in which you can specify the id of the Custom Search Engine you want to use., (*11)

Usage

Here is a sample call to get search results:, (*12)

/* 
  This function returns an array with keys

  "name"     // the name of the found page
  "url"      // the url of the found page
  "snippet"  // a little piece of text found on the page
*/

$searchResults = GoogleSearch::getResults('The meaning of life'); // is 42

When no results are found an empty array is returned., (*13)

About Spatie

Spatie is a webdesign agency in Antwerp, Belgium. You'll find an overview of all our open source projects on our website., (*14)

The Versions

07/03 2018

dev-master

9999999-dev https://github.com/spatie/googlesearch

Get searchresults from a Google Custom Search Engine

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel search google engine custom

05/10 2016

2.0.3

2.0.3.0 https://github.com/spatie/googlesearch

Get searchresults from a Google Custom Search Engine

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel search google engine custom

05/10 2016

dev-analysis-X0w7bj

dev-analysis-X0w7bj https://github.com/spatie/googlesearch

Get searchresults from a Google Custom Search Engine

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel search google engine custom

29/01 2016

2.0.2

2.0.2.0 https://github.com/spatie/googlesearch

Get searchresults from a Google Custom Search Engine

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel search google engine custom

23/05 2015

2.0.1

2.0.1.0 https://github.com/spatie/googlesearch

Get searchresults from a Google Custom Search Engine

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel search google engine custom

12/02 2015

2.0.0

2.0.0.0

Get searchresults from a Google Custom Search Engine

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel search google engine custom

12/02 2015

1.0.0

1.0.0.0

Get searchresults from a Google Custom Search Engine

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel search google engine custom

17/12 2014

0.2.3

0.2.3.0

Get searchresults from a Google Custom Search Engine

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel search google engine custom

17/12 2014

0.2.2

0.2.2.0

Get searchresults from a Google Custom Search Engine

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel search google engine custom

23/06 2014

0.2

0.2.0.0

Get searchresults from a Google Custom Search Engine

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel search google engine custom

06/06 2014

0.1.3

0.1.3.0

Get searchresults from a Google Custom Search Engine

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel search google engine custom

02/06 2014

0.1.2

0.1.2.0

Get searchresults from a Google Custom Search Engine

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel search google engine custom

26/05 2014

0.1.1

0.1.1.0

Get searchresults from a Google Custom Search Engine

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel search google engine custom

03/05 2014

0.1.0

0.1.0.0

Get searchresults from a Google Custom Search Engine

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel search google engine custom