PHPackages                             sbnet/weatherbundle - 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. sbnet/weatherbundle

AbandonedArchivedSymfony-bundle[Utility &amp; Helpers](/categories/utility)

sbnet/weatherbundle
===================

A symfony weather bundle

0293[1 issues](https://github.com/sbnet/WeatherBundle/issues)PHP

Since Oct 3Pushed 8y ago1 watchersCompare

[ Source](https://github.com/sbnet/WeatherBundle)[ Packagist](https://packagist.org/packages/sbnet/weatherbundle)[ RSS](/packages/sbnet-weatherbundle/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Informations
============

[](#informations)

[![SensioLabsInsight](https://camo.githubusercontent.com/f30b1d17de97ae13b89e0d06036e8e09371dad2767365715cb7789b2a29236c6/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f35343962346439642d633731342d346235662d626639642d3631656139383330316261652f6269672e706e67)](https://insight.sensiolabs.com/projects/549b4d9d-c714-4b5f-bf9d-61ea98301bae)

This bundle uses :

- The [OpenWeatherMap API](http://openweathermap.org/api)
- The cache component available from the Symfony version 3.1

If you need more weather drivers, it's simple to add one. Just have a look at the source code and start adding one. For example, there is some libraries for the [Weather Channel API](https://www.wunderground.com/weather/api).

How to use this bundle
======================

[](#how-to-use-this-bundle)

Just add it to your composer file
---------------------------------

[](#just-add-it-to-your-composer-file)

```
"sbnet/weatherbundle": "dev-master"
```

And activate it in your app/AppKernel.php file

Configure your api key
----------------------

[](#configure-your-api-key)

Put your key in the app/config/parameters.yml file

For Open Weather Map

```
sbnet_weather.owm.key:
```

Activation
----------

[](#activation)

Don't forget to activate it in your app/AppKernel.php file

```
public function registerBundles()
{
    $bundles = [
        ...
        new Sbnet\WeatherBundle\SbnetWeatherBundle(),
    ];
```

You can use it from your controller
-----------------------------------

[](#you-can-use-it-from-your-controller)

```
$weather = $this->container->get("sbnet.weather.owm");
$forecast = $weather->getForecastByCoord(43.93332, 4.93333);
```

Work in progress
================

[](#work-in-progress)

Open Weather Map
----------------

[](#open-weather-map)

- getForecastByCoord()
- getForecastByName()
- getForecastById()
- getCurrentByCoord()
- getCurrentById()
- getCurrentByName()
- getIconUrlById()

License
=======

[](#license)

Copyright (c) 2015 Stephane BRUN

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7686449?v=4)[steph](/maintainers/steph)[@steph](https://github.com/steph)

---

Tags

bundlemeteoopenweathermapphpsymfonyweather

### Embed Badge

![Health badge](/badges/sbnet-weatherbundle/health.svg)

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

###  Alternatives

[aura/uri

The Aura Uri package provides objects to build and manipulate URL strings.

2382.1k2](/packages/aura-uri)

PHPackages © 2026

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