2017 © Pedro Peláez
 

library google-search

Google Websearch Protocol

image

xp-forge/google-search

Google Websearch Protocol

  • Monday, February 5, 2018
  • by thekid
  • Repository
  • 7 Watchers
  • 0 Stars
  • 15,970 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 8 % Grown

The README.md

google-search

Build Status on TravisCI XP Framework Module BSD Licence Required PHP 5.5+ Supports PHP 7.0+ Supports HHVM 3.4+ Latest Stable Version, (*1)

Google Websearch Protocol. See http://www.google.com/cse/docs/resultsxml.html, (*2)

Example

use com\google\search\custom\GoogleSearchClient;
use util\cmd\Console;

$client= new GoogleSearchClient('http://gsa23.enterprisedemo-google.com/search');
$response= $client->searchFor((new GoogleSearchQuery())
  ->withTerm('test')
  ->startingAt(10)
);

Console::writeLinef('Searching for "test" took %3.f second(s)', $response->getTime());
Console::writeLine('Results: ', $response->getResultSet());

API

$ xp mirror com.google.search.custom
@FileSystemCL<./src/main/php>
@FileSystemCL<./src/test/php>
package com.google.search.custom {
  package com.google.search.custom.types
  package com.google.search.custom.unittest

  public class com.google.search.custom.GoogleSearchClient
  public class com.google.search.custom.GoogleSearchQuery
}

The Versions

23/01 2016

v5.0.1

5.0.1.0 http://xp-framework.net/

Google Websearch Protocol

  Sources   Download

BSD-3-Clause

The Requires

 

module xp

14/12 2015

v5.0.0

5.0.0.0 http://xp-framework.net/

Google Websearch Protocol

  Sources   Download

BSD-3-Clause

The Requires

 

module xp

12/02 2015

v4.0.1

4.0.1.0 http://xp-framework.net/

Google Websearch Protocol

  Sources   Download

BSD-3-Clause

The Requires

 

module xp

11/01 2015

v4.0.0

4.0.0.0 http://xp-framework.net/

Google Websearch Protocol

  Sources   Download

BSD-3-Clause

The Requires

 

module xp