PHPackages                             chrismou/phergie-irc-plugin-react-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. chrismou/phergie-irc-plugin-react-google

ActiveLibrary

chrismou/phergie-irc-plugin-react-google
========================================

Phergie plugin for returning Google search results and estimated result counts

v2.1.1(10y ago)12451[1 issues](https://github.com/chrismou/phergie-irc-plugin-react-google/issues)BSD-2-ClausePHPPHP &gt;=5.5.0

Since Jan 12Pushed 7y ago2 watchersCompare

[ Source](https://github.com/chrismou/phergie-irc-plugin-react-google)[ Packagist](https://packagist.org/packages/chrismou/phergie-irc-plugin-react-google)[ Docs](http://github.com/chrismou/phergie-irc-plugin-react-google)[ RSS](/packages/chrismou-phergie-irc-plugin-react-google/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (9)Versions (9)Used By (0)

Google plugin for [Phergie](http://github.com/phergie/phergie-irc-bot-react/)
=============================================================================

[](#google-plugin-for-phergie)

[Phergie](http://github.com/phergie/phergie-irc-bot-react/) plugin for returning Google search results and estimated result counts.

[![Build Status](https://camo.githubusercontent.com/6e6ea2cf4283d35d5cc677eaf01452141a300e2b6b5942cd7bdde9d51e193c9a/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f63687269736d6f752f706865726769652d6972632d706c7567696e2d72656163742d676f6f676c652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/chrismou/phergie-irc-plugin-react-google)[![Test Coverage](https://camo.githubusercontent.com/6b87b74d851eb0e116572429a1c95391faaf6eb453ad016dea78b24aa2008327/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f63687269736d6f752f706865726769652d6972632d706c7567696e2d72656163742d676f6f676c652f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/chrismou/phergie-irc-plugin-react-google/coverage)[![Code Climate](https://camo.githubusercontent.com/961aab999a0664b0bc0f9dc4fde85d42baf5f8c8cfa6826b70963e9f1545f810/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f63687269736d6f752f706865726769652d6972632d706c7567696e2d72656163742d676f6f676c652f6261646765732f6770612e737667)](https://codeclimate.com/github/chrismou/phergie-irc-plugin-react-google)[![Buy me a beer](https://camo.githubusercontent.com/84435278ebf644da9ba4ece64a76602c16bb88edd474ee54cc757a17eca9666f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f6e6174652d50617950616c2d3031394344452e737667)](https://www.paypal.me/chrismou)

About
-----

[](#about)

This plugin provides a simple method for performing Google lookups from within IRC. By default, the plugin accepts one of 2 commands (google and googlecount) and outputs either the top result for your search query, or the estimated result count.

I'd also recommend installing the [CommandAlias plugin](https://github.com/phergie/phergie-irc-plugin-react-commandalias), which can be used to alias the commands (ie, to use "g" instead of "google").

Install
-------

[](#install)

The recommended method of installation is [through composer](http://getcomposer.org).

```
composer require chrismou/phergie-irc-plugin-react-google

```

See Phergie documentation for more information on [installing and enabling plugins](https://github.com/phergie/phergie-irc-bot-react/wiki/Usage#plugins).

Configuration
-------------

[](#configuration)

This plugin requires the [Command plugin](https://github.com/phergie/phergie-irc-plugin-react-command) to recognise commands, and the [http plugin](https://github.com/phergie/plugin-http) to query Google for your search results.

If you're new to Phergie or Phergie plugins, see the [Phergie setup instructions](https://github.com/phergie/phergie-irc-bot-react/wiki/Usage#configuration)for more information. Otherwise, add the following references to your config file:

```
return array(
    // ...
    'plugins' => array(
        new \Chrismou\Phergie\Plugin\Google\Plugin,
        new \Phergie\Irc\Plugin\React\Command\Plugin,  // dependency
        new \Phergie\Plugin\Dns\Plugin,                // dependency
        new \Phergie\Plugin\Http\Plugin	               // dependency
    )
)
```

By default, the plugin will respond to "google" for Google searches, and "googlecount" for estimated results. counts.

Or, you can pass references to the providers you want to use as a config array, where the array key is the command you want the bot to respond to and the value is the class to use.

```
new \Chrismou\Phergie\Plugin\Google\Plugin(array(
    'providers' => array(
        "google" => "Chrismou\\Phergie\\Plugin\\Google\\Provider\\GoogleSearch",
        "googlecount" => "Chrismou\\Phergie\\Plugin\\Google\\Provider\\GoogleSearchCount"
    )
)),
```

Tests
-----

[](#tests)

To run the unit test suite:

```
curl -s https://getcomposer.org/installer | php
php composer.phar install
./vendor/bin/phpunit

```

If you use docker, you can also run the test suite against all supported PHP versions:

```
./vendor/bin/dunit

```

License
-------

[](#license)

Released under the BSD License. See [LICENSE](LICENSE).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 97.8% 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 ~51 days

Recently: every ~12 days

Total

8

Last Release

3783d ago

Major Versions

v1.1.2 → v2.0.02015-12-16

PHP version history (2 changes)1.0.0PHP &gt;=5.4.0

v1.1.0PHP &gt;=5.5.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/98e0798db43673fb89fe589cbb45fb4c6547d3bdbe76d7efa30d96f24ffc677e?d=identicon)[chrismou](/maintainers/chrismou)

---

Top Contributors

[![chrismou](https://avatars.githubusercontent.com/u/319883?v=4)](https://github.com/chrismou "chrismou (88 commits)")[![elazar](https://avatars.githubusercontent.com/u/15487?v=4)](https://github.com/elazar "elazar (1 commits)")[![svpernova09](https://avatars.githubusercontent.com/u/967362?v=4)](https://github.com/svpernova09 "svpernova09 (1 commits)")

---

Tags

pluginbotircphergie

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/chrismou-phergie-irc-plugin-react-google/health.svg)

```
[![Health](https://phpackages.com/badges/chrismou-phergie-irc-plugin-react-google/health.svg)](https://phpackages.com/packages/chrismou-phergie-irc-plugin-react-google)
```

PHPackages © 2026

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