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

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

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

Phergie plugin for returning weather information for a given location

v2.1.0(10y ago)12334[3 issues](https://github.com/chrismou/phergie-irc-plugin-react-weather/issues)[1 PRs](https://github.com/chrismou/phergie-irc-plugin-react-weather/pulls)BSD-2-ClausePHPPHP &gt;=5.5.0

Since Jan 12Pushed 7y ago1 watchersCompare

[ Source](https://github.com/chrismou/phergie-irc-plugin-react-weather)[ Packagist](https://packagist.org/packages/chrismou/phergie-irc-plugin-react-weather)[ RSS](/packages/chrismou-phergie-irc-plugin-react-weather/feed)WikiDiscussions master Synced 3d ago

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

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

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

[Phergie](http://github.com/phergie/phergie-irc-bot-react/) plugin for returning weather information for a given location.

[![Build Status](https://camo.githubusercontent.com/c34e2b891c0803eb17a7d1375cf48e1fe80b9006866da2151592c4b6c0dde22a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f63687269736d6f752f706865726769652d6972632d706c7567696e2d72656163742d776561746865722f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/chrismou/phergie-irc-plugin-react-weather/build-status/master)[![Test Coverage](https://camo.githubusercontent.com/bd7f279788978fef6c719d2a6f689db4cb2decf5b2b69959a42117b87c4e69ce/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f63687269736d6f752f706865726769652d6972632d706c7567696e2d72656163742d776561746865722f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/chrismou/phergie-irc-plugin-react-weather/coverage)[![Code Climate](https://camo.githubusercontent.com/09b27620438c2e86b443eaef7694a66a9d1316b16f50a9ce559be23931bcef60/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f63687269736d6f752f706865726769652d6972632d706c7567696e2d72656163742d776561746865722f6261646765732f6770612e737667)](https://codeclimate.com/github/chrismou/phergie-irc-plugin-react-weather)[![Buy me a beer](https://camo.githubusercontent.com/84435278ebf644da9ba4ece64a76602c16bb88edd474ee54cc757a17eca9666f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f6e6174652d50617950616c2d3031394344452e737667)](https://www.paypal.me/chrismou)

About
-----

[](#about)

This plugin provides a method for performing weather lookups for a specified town/city/zip code. OpenWeatherMap, the default provider, simply requires a location to search on, whereas the Wunderground provider requires a location and a country. Future providers may have similar inconsistencies, but if you're using the [CommandHelp plugin](https://github.com/phergie/phergie-irc-plugin-react-commandhelp) you should always be able to find the correct syntax for your provider of choice by by running "help weather" from within IRC.

Install
-------

[](#install)

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

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

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/phergie-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 \Phergie\Irc\Plugin\React\Command\Plugin,   // dependency
		new \Phergie\Plugin\Dns\Plugin,                 // dependency
		new \Phergie\Plugin\Http\Plugin,                // dependency
		new \Chrismou\Phergie\Plugin\Weather\Plugin(array(

            "config" => array("appId" => "YOUR_APP_ID")

        ))
	)
)
```

The default provider is OpenWeatherSearch, which requires a free api key to use (you can get one from [here](http://openweathermap.org/appid)). To use OpenWeatherMap, you only need to provide the API key.

There's also a Weather Underground provider included. It's a bit of a work in progress - it currently requires a city and country and tends to not find the location as often - but it does work. If you think you can improve it, feel free to fork/fix/pull request or send me your suggestions. :)

Weather underground also requires an API key, which can you get for free from [here](http://www.wunderground.com/weather/api/). You'll also need to specify you're using this provider in your Phergie config:

```
new \Chrismou\Phergie\Plugin\Weather\Plugin(array(

	'provider' => 'Chrismou\\Phergie\\Plugin\\Weather\\Provider\\Wunderground',
    "config" => array("appId" => "YOUR_APP_ID")

))
```

Or if you know of any other weather services, you can write your own - feel free to fork and improve!

#### Current request limits:

[](#current-request-limits)

- **Open Weather Map**: 4,000,000/day (max. 3000/min)
- **Weather Underground**: 500/day (max. 10/min)

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`.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 96.2% 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 ~88 days

Total

5

Last Release

3837d ago

Major Versions

v1.1.0 → v2.0.02015-12-16

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/319883?v=4)[Chris Chrisostomou](/maintainers/chrismou)[@chrismou](https://github.com/chrismou)

---

Top Contributors

[![chrismou](https://avatars.githubusercontent.com/u/319883?v=4)](https://github.com/chrismou "chrismou (50 commits)")[![EricHogue](https://avatars.githubusercontent.com/u/148605?v=4)](https://github.com/EricHogue "EricHogue (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-weather/health.svg)

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

PHPackages © 2026

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