PHP Classes

Google_Query: Retrieve the count of results of Google query

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 54%Total: 3,405 All time: 1,007 This week: 524Up
Version License PHP version Categories
google_query 1.0GNU General Publi...5.0Searching, Web services
Description 

Author

This class is meant to connect to Google and perform a query to Google.

The class lets you specify the query parameters as in the advanced search page of Google. Then it connects to Google site via HTTP and retrieves the contents of the results page.

The class also parses the results to obtain the number of occurrences found for the specified query.

The class requires PHP with TCP socket connection support enabled.

A bug has been fix : if google change it's result page design, results wasn't parse. To fix this problem, Google_AdvancedQuery class retrieve from a centralised location the valid detection pattern. you can update it according with your policy.
Class has been wrote back to php5 and zend coding standards.

Picture of MARY Matthieu
Name: MARY Matthieu <contact>
Classes: 19 packages by
Country: France, Metropolitan
Age: 45
All time rank: 251 in France, Metropolitan
Week rank: 164 Down1 in France, Metropolitan Equal

  Files folder image Files (11)  
File Role Description
Files folder imageCache (1 file)
Files folder imageGoogle (3 files)
Files folder imageTest (1 directory)
Files folder imageTestlaunchers (1 directory)
Accessible without login Plain text file Autoload.php Aux. loader
Accessible without login Plain text file class_google_example.php Example how to install and use this class
Accessible without login Plain text file LICENCE Lic. GPL copy

  Files folder image Files (11)  /  Cache  
File Role Description
  Plain text file class_cache.php Class this class make the cache functions

  Files folder image Files (11)  /  Google  
File Role Description
  Plain text file AdvancedQuery.php Class query which can updated result number design pattern
  Plain text file class_google.php Class class file
  Plain text file Query.php Class basic query class

  Files folder image Files (11)  /  Test  
File Role Description
Files folder imageGoogle (2 files)

  Files folder image Files (11)  /  Test  /  Google  
File Role Description
  Accessible without login Plain text file AdvancedQuery.php Test Unit test class for Google_AdvancedQuery
  Accessible without login Plain text file Query.php Test Unit test class for Google_Query

  Files folder image Files (11)  /  Testlaunchers  
File Role Description
Files folder imageGoogle (2 files)

  Files folder image Files (11)  /  Testlaunchers  /  Google  
File Role Description
  Accessible without login Plain text file AdvancedQuery.php Test Launch unit test case Test_Google_AdvancedQuery
  Accessible without login Plain text file Query.php Test Launch unit test case Test_Google_Query

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:3,405
This week:0
All time:1,007
This week:524Up
 User Ratings  
 
 All time
Utility:78%StarStarStarStar
Consistency:82%StarStarStarStarStar
Documentation:-
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:54%StarStarStar
Rank:2025