PHPackages                             suncat/weather-underground - 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. suncat/weather-underground

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

suncat/weather-underground
==========================

Symfony2 bundle for working with Weather Underground API.

02.2k1PHP

Since Dec 17Pushed 12y ago1 watchersCompare

[ Source](https://github.com/suncat2000/WeatherUndergroundBundle)[ Packagist](https://packagist.org/packages/suncat/weather-underground)[ RSS](/packages/suncat-weather-underground/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

WeatherUndergroundBundle
========================

[](#weatherundergroundbundle)

Symfony2 bundle for working with Weather Underground API

Introduction
============

[](#introduction)

This Bundle enables integration [Weather Underground API](http://www.wunderground.com/weather/api/d/docs) with your Symfony 2 project.

Installation
============

[](#installation)

### Add this bundle and kriswallsmith [Buzz](https://github.com/kriswallsmith/Buzz) library to `composer.json` in your project to `require` section:

[](#add-this-bundle-and-kriswallsmith-buzz-library-to-composerjson-in-your-project-to-require-section)

```
...
    {
        "kriswallsmith/buzz": "0.7",
        "suncat/weather-underground": "dev-master"
    }
...

```

### Add this bundle to your application's kernel:

[](#add-this-bundle-to-your-applications-kernel)

```
//app/AppKernel.php
public function registerBundles()
{
    return array(
        // ...
        new SunCat\WeatherUndergroundBundle\WeatherUndergroundBundle(),
        // ...
    );
}

```

### Configure the `weather_underground` service in your YAML configuration:

[](#configure-the-weather_underground-service-in-your-yaml-configuration)

```
#app/config/config.yml
weather_underground:
    apikey: your_api_key

```

### Full conﬁguration

[](#full-conﬁguration)

```
#app/conﬁg/conﬁg.yml
weather_underground:
    apikey: your_api_key
    format: json                                                # json/xml
    host_data_features: http://api.wunderground.com             # default: http://api.wunderground.com
    host_autocomlete: http://autocomplete.wunderground.com      # default: http://autocomplete.wunderground.com

```

Usage example
=============

[](#usage-example)

```
