PHPackages                             dwr/openweather-bundle - 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. [API Development](/categories/api)
4. /
5. dwr/openweather-bundle

ActiveSymfony-bundle[API Development](/categories/api)

dwr/openweather-bundle
======================

Symfony3 bundle wraps Open Weather API.

2.0(9y ago)01231MITPHP

Since Jul 16Pushed 9y ago1 watchersCompare

[ Source](https://github.com/dariuszwrzesien/DwrOpenWeatherBundle)[ Packagist](https://packagist.org/packages/dwr/openweather-bundle)[ Docs](https://github.com/dariuszwrzesien/DwrOpenWeatherBundle)[ RSS](/packages/dwr-openweather-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (6)Versions (6)Used By (0)

[![SensioLabsInsight](https://camo.githubusercontent.com/d89840840ccb5765f872ff19cae95b2c25e4310d254f345dff75772b912360e7/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f61333266633863352d306263382d346461612d386238642d6562323639366465393439632f6269672e706e67)](https://insight.sensiolabs.com/projects/a32fc8c5-0bc8-4daa-8b8d-eb2696de949c)
==================================================================================================================================================================================================================================================================================================================================================================================

[](#)

[![Latest Stable Version](https://camo.githubusercontent.com/9d42e11a68f3aad0d5ec17603dc47c23c0cfe7882e7b52b46b0416784df50e91/68747470733a2f2f706f7365722e707567782e6f72672f6477722f6f70656e776561746865722d62756e646c652f762f737461626c65)](https://packagist.org/packages/dwr/openweather-bundle)[![Total Downloads](https://camo.githubusercontent.com/277872a6f223e65bbd974bf0bd41225a30b9dd5c9265d516391d9dcba4630e6f/68747470733a2f2f706f7365722e707567782e6f72672f6477722f6f70656e776561746865722d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/dwr/openweather-bundle)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/f14507828d48ba80ab37e35595db050a172d8aacc338645fe149696ed0a1abe9/68747470733a2f2f7472617669732d63692e6f72672f6461726975737a77727a657369656e2f4477724f70656e5765617468657242756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/dariuszwrzesien/DwrOpenWeatherBundle)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/315fcb366f96395dc65a2fc5189494a7356a0b4195f5000132308b6bac70643d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6461726975737a77727a657369656e2f4477724f70656e5765617468657242756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/dariuszwrzesien/DwrOpenWeatherBundle/?branch=master)[![Coverage Status](https://camo.githubusercontent.com/43159656957c690914084f298db92f534b4583004926db5a37bd2b40985cdf82/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6461726975737a77727a657369656e2f4477724f70656e5765617468657242756e646c652f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/dariuszwrzesien/DwrOpenWeatherBundle?branch=master)[![composer.lock](https://camo.githubusercontent.com/b4bf33b8eee03743ff541b0521f14388ee6649edb96cad70d8453964d0fa50db/68747470733a2f2f706f7365722e707567782e6f72672f6477722f6f70656e776561746865722d62756e646c652f636f6d706f7365726c6f636b)](https://packagist.org/packages/dwr/openweather-bundle)

**DwrOpenWeatherBundle**
========================

[](#dwropenweatherbundle)

DwrOpenWeatherBundle is a simply wrapper bundle for [Open Weather API](https://openweathermap.org/).
In order to start please generate your personal ApiKey first.
You can do it [here](http://openweathermap.org/appid).

**Installation**
----------------

[](#installation)

When you have ApiKey, installation is a quick 3 steps process:

1. Download DwrOpenWeatherBundle using composer
2. Enable the Bundle
3. Add routing to routing.yml in order to can open example in your browser

### Step 1: Download DwrOpenWeatherBundle using composer

[](#step-1-download-dwropenweatherbundle-using-composer)

Add DwrOpenWeatherBundle in version 2.0 to your composer.json and run 'composer update'

```
{
    "require": {
        "dwr/openweather-bundle": "2.0"
    }
}
```

or download the bundle by running the command:

```
$ php composer.phar require dwr/openweather-bundle
```

Composer will install the bundle into your project's `vendor/dwr/openweather-bundle` directory.

### Step 2: Enable the bundle and add APIKEY to config.yml

[](#step-2-enable-the-bundle-and-add-apikey-to-configyml)

Enable the bundle in the kernel:

```
