PHPackages                             howie6879/php-google - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. howie6879/php-google

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

howie6879/php-google
====================

Google search results crawler, get google search results that you need.

1.0(9y ago)325649[1 issues](https://github.com/howie6879/php-google/issues)PHP

Since Jun 24Pushed 9y ago5 watchersCompare

[ Source](https://github.com/howie6879/php-google)[ Packagist](https://packagist.org/packages/howie6879/php-google)[ Docs](https://github.com/howie6879/php-google)[ RSS](/packages/howie6879-php-google/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

php-google
==========

[](#php-google)

This is an easy Google Searching crawler that you can get anything you want in the page by using it.

During the process of crawling,you need to pay attention to the limitation from google towards ip address and the warning of exception , so I suggest that you should pause running the program and own the Proxy ip

python - [MagicGoogle](https://github.com/howie6879/MagicGoogle)

### 2.How to Use?

[](#2how-to-use)

This project can be installed via composer by requiring the `howie6879/php-google` package in `composer.json`:

```
{
    "require": {
        "howie6879/php-google": "1.0"
    }
}
```

If you have installed `php-google` in your project, you can get google search results that you need.

**Example**

```
# Add boostrap autoload file

require_once '../vendor/autoload.php';
use \howie6879\PhpGoogle\MagicGoogle;

# Or new MagicGoogle()
$magicGoogle = new MagicGoogle('http://127.0.0.1:8118');

# The first page of results
$data = $magicGoogle->search_page('python');

# Get url
$data = $magicGoogle->search_url('python');

foreach ($data as $value) {
    var_dump($value);
}

/** Output
 * string(23) "https://www.python.org/"
 * string(33) "https://www.python.org/downloads/"
 * string(35) "https://docs.python.org/3/tutorial/"
 * string(44) "https://www.python.org/about/gettingstarted/"
 * string(43) "https://wiki.python.org/moin/BeginnersGuide"
 * string(41) "https://www.python.org/downloads/windows/"
 * string(24) "https://docs.python.org/"
 * string(59) "https://en.wikipedia.org/wiki/Python_(programming_language)"
 * string(39) "https://www.codecademy.com/learn/python"
 * string(25) "https://github.com/python"
 * string(38) "https://www.tutorialspoint.com/python/"
 * string(28) "https://www.learnpython.org/"
 * string(44) "https://www.programiz.com/python-programming"
 */

# Get {'title','url','text'}
$data = $magicGoogle->search('python', 'en', '1');

foreach ($data as $value) {
    var_dump($value);
}

/** Output
 * array(3) {
 * ["title"]=>
 * string(21) "Welcome to Python.org"
 * ["url"]=>
 * string(23) "https://www.python.org/"
 * ["text"]=>
 * string(54) "The official home of the Python Programming Language. "
 * }
 */
```

You can see [sample.php](./examples/sample.php)

**If you need a big amount of querie but only having an ip address,I suggest you can have a time lapse between 5s ~ 30s.**

The reason that it always return empty might be as follows:

```

302 Moved
302 Moved
The document has moved
here.

```

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 88.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

3294d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/17047388?v=4)[howie.hu](/maintainers/howie6879)[@howie6879](https://github.com/howie6879)

---

Top Contributors

[![howie6879](https://avatars.githubusercontent.com/u/17047388?v=4)](https://github.com/howie6879 "howie6879 (8 commits)")[![petrenkorf](https://avatars.githubusercontent.com/u/3410105?v=4)](https://github.com/petrenkorf "petrenkorf (1 commits)")

---

Tags

crawlergoogle-searchphp-googlegooglecrawlerGoogle searchgoogle result

### Embed Badge

![Health badge](/badges/howie6879-php-google/health.svg)

```
[![Health](https://phpackages.com/badges/howie6879-php-google/health.svg)](https://phpackages.com/packages/howie6879-php-google)
```

###  Alternatives

[jaybizzle/crawler-detect

CrawlerDetect is a PHP class for detecting bots/crawlers/spiders via the user agent

2.4k101.6M262](/packages/jaybizzle-crawler-detect)[spatie/laravel-analytics

A Laravel package to retrieve Google Analytics data.

3.2k6.0M66](/packages/spatie-laravel-analytics)[spatie/laravel-google-calendar

Manage events on a Google Calendar

1.4k1.7M21](/packages/spatie-laravel-google-calendar)[wa72/htmlpagedom

jQuery-inspired DOM manipulation extension for Symfony's Crawler

3384.0M35](/packages/wa72-htmlpagedom)[jaybizzle/laravel-crawler-detect

A Laravel package to detect web crawlers via the user agent

3232.7M18](/packages/jaybizzle-laravel-crawler-detect)[emcconville/google-map-polyline-encoding-tool

A simple class to handle polyline-encoding for Google Maps

1572.4M2](/packages/emcconville-google-map-polyline-encoding-tool)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
