PHPackages                             endroid/openweathermap - 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. endroid/openweathermap

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

endroid/openweathermap
======================

Endroid OpenWeatherMap

1.1.1(9y ago)326.4k51MITPHPPHP &gt;=5.4

Since Aug 27Pushed 9y ago1 watchersCompare

[ Source](https://github.com/endroid/OpenWeatherMap)[ Packagist](https://packagist.org/packages/endroid/openweathermap)[ Docs](https://github.com/endroid/OpenWeatherMap)[ RSS](/packages/endroid-openweathermap/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (2)Versions (12)Used By (1)

Endroid OpenWeatherMap
======================

[](#endroid-openweathermap)

*By [endroid](http://endroid.nl/)*

[![Latest Stable Version](https://camo.githubusercontent.com/0926c0913cee429d6d33a0a5620818226e9b9033f4f13c40a43bd10698c47222/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656e64726f69642f6f70656e776561746865726d61702e737667)](https://packagist.org/packages/endroid/openweathermap)[![Build Status](https://camo.githubusercontent.com/0295f38a8ecb975964496b0f3e801c180eb045cea95dba879b6ca221ab5e55b5/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f656e64726f69642f4f70656e576561746865724d61702e706e67)](http://travis-ci.org/endroid/OpenWeatherMap)[![Total Downloads](https://camo.githubusercontent.com/bea2d9837c7521409928a3c1cea92f09a1157efc04b85567afd560444928148a/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f656e64726f69642f6f70656e776561746865726d61702e737667)](https://packagist.org/packages/endroid/openweathermap)[![Monthly Downloads](https://camo.githubusercontent.com/20b364bdddb34b2e3faf1ebfa28f4b1d4cbf0695e31c9384e0155121ee1d749e/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f656e64726f69642f6f70656e776561746865726d61702e737667)](https://packagist.org/packages/endroid/openweathermap)[![License](https://camo.githubusercontent.com/592f614e700b68d29160b7b9fdd7bc0bdd52f31950f2a6497484eaa630b098e3/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f656e64726f69642f6f70656e776561746865726d61702e737667)](https://packagist.org/packages/endroid/openweathermap)

OpenWeatherMap helps making requests to the OpenWeatherMap API, without having to bother too much about passing your API key and building requests. The only thing you need is the API key (APPID) which you can find after [registration on the website](http://openweathermap.org/login).

More info about custom parameters in the official API docs: [http://bugs.openweathermap.org/projects/api/wiki/Api\_2\_5](http://bugs.openweathermap.org/projects/api/wiki/Api_2_5)

```
use Endroid\OpenWeatherMap\Client;

$apiKey = '...';
$client = new Client($apiKey);

// Retrieve the current weather for Breda
$weather = $client->getWeather('Breda,nl');

// Or retrieve the weather using the generic query method
$response = $client->query('weather', ['q' => 'Breda,nl']);
$weather = json_decode($response->getContent());

// You can also retrieve a N days forecast
$forecast = $client->getForecast('Breda,nl', 7);
```

Symfony integration
-------------------

[](#symfony-integration)

Register the Symfony bundle in the kernel.

```
// app/AppKernel.php

public function registerBundles()
{
    $bundles = [
        // ...
        new Endroid\OpenWeatherMap\Bundle\EndroidOpenWeatherMapBundle(),
    ];
}
```

The default parameters can be overridden via the configuration.

```
endroid_open_weather_map:
    api_key: '...'
    units: 'metric'
```

Now you can retrieve the client as follows.

```
$client = $this->get('endroid.open_weather_map.client');
```

Versioning
----------

[](#versioning)

Version numbers follow the MAJOR.MINOR.PATCH scheme. Backwards compatibility breaking changes will be kept to a minimum but be aware that these can occur. Lock your dependencies for production and test your code when upgrading.

License
-------

[](#license)

This bundle is under the MIT license. For the full copyright and license information please view the LICENSE file that was distributed with this source code.

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 88.5% 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 ~122 days

Recently: every ~69 days

Total

11

Last Release

3468d ago

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

1.1.0PHP &gt;=5.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/ea3fc1b297f29579f9861b5fbe3240c0eeafaaaee6e39b45d85d612a04a52fbd?d=identicon)[endroid](/maintainers/endroid)

---

Top Contributors

[![endroid](https://avatars.githubusercontent.com/u/537253?v=4)](https://github.com/endroid "endroid (23 commits)")[![albertofem](https://avatars.githubusercontent.com/u/409472?v=4)](https://github.com/albertofem "albertofem (2 commits)")[![fmronan](https://avatars.githubusercontent.com/u/1835167?v=4)](https://github.com/fmronan "fmronan (1 commits)")

---

Tags

symfonybundlemapendroidopenweatherOpenWeatherMap

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/endroid-openweathermap/health.svg)

```
[![Health](https://phpackages.com/badges/endroid-openweathermap/health.svg)](https://phpackages.com/packages/endroid-openweathermap)
```

###  Alternatives

[oat-sa/tao-core

TAO core extension

66143.7k119](/packages/oat-sa-tao-core)

PHPackages © 2026

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