PHP class to scrape local results from Google. Customize the location, language, domain, and device type.
Features
![]()
- Scrape local search results from over 92,000 locations worldwide.
- Disables & overrides Google’s automatic location detection.
- Scrape unlimited pages.
- Set the language for search results.
- Easily switch between desktop, tablet, or mobile.
- Use any Google domain (google.com, google.nl, etc)
- Proxy support – with optional user/pass authentication
- Fast & lightweight parsing – doesn’t use a DOM.
- Composer-ready (PSR-4) version included.

setLocation("new york"); $google->setQuery("nearby restaurants"); $google->setDevice("mobile"); // optional $google->setLanguage(new Language("es")); // optional $google->setProxy("123.211.1.13:8080", "user:pass"); // optional $page1 = $google->next(); $page2 = $google->next(); while ($result = $page1->fetch_array()) { $title = $result["title"]; $description = $result["description"]; $site = $result["site"]; $domain = $result["domain"]; echo $title . " - "; echo $domain . "Requirements
"; } ?>
- PHP 5.4 +
- CURL
Version 1.01 - New techiehut documentation. - Fixed some domain names not parsing correctly. - Added new Location and Language classes. - Updated composer (PSR-4) code to follow specifications. Version 1.0 - Initial release]]>