PHPackages                             hashbang/wunderground - 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. hashbang/wunderground

ActiveLibrary[API Development](/categories/api)

hashbang/wunderground
=====================

An simple Weather Underground PHP API

v1.0.0(12y ago)8305MITCSSPHP &gt;=5.0.0

Since Mar 25Pushed 12y ago1 watchersCompare

[ Source](https://github.com/hash-bang/PHP-Wunderground)[ Packagist](https://packagist.org/packages/hashbang/wunderground)[ Docs](https://github.com/hash-bang/PHP-Wunderground)[ RSS](/packages/hashbang-wunderground/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

An exceptionally simple Weather Underground PHP class for simple data retrieval.

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

[](#installation)

Download this GIT repository and copy into your application directory.

Alternatively, install with [Composer](http://getcomposer.org).

Examples
========

[](#examples)

The following will retrieve a detailed 2 day forecast in the form of an array. The last perameter specifies the gaps between data. In the below example its set to a day (60 seconds \* 60 minutes \* 24 hours). Omit this if you want as much data as possible.

```

```

Will return

```
Array
(
    [1305385200] => Array
	(
	    [date] => Array
		(
		    [epoc] => 1305385200
		    [iso] => 2011-05-15T01:00:00Z
		)

	    [precipitation] => Array
		(
		    [unit] => mm
		    [value] => 0.4
		    [minvalue] => 0.0
		    [maxvalue] => 0.8
		)

	    [symbol] => Array
		(
		    [id] => LIGHTRAINSUN
		    [number] => 5
		)

	)

    [1305471600] => Array
	(
	    [date] => Array
		(
		    [epoc] => 1305471600
		    [iso] => 2011-05-16T01:00:00Z
		)

	    [temperature] => Array
		(
		    [id] => TTT
		    [unit] => celcius
		    [value] => 3.6
		)

	    [windDirection] => Array
		(
		    [id] => dd
		    [deg] => 305.2
		    [name] => NW
		)

	    [windSpeed] => Array
		(
		    [id] => ff
		    [mps] => 2.2
		    [beaufort] => 2
		    [name] => Svak vind
		)

	    [humidity] => Array
		(
		    [value] => 90.2
		    [unit] => percent
		)

	    [pressure] => Array
		(
		    [id] => pr
		    [unit] => hPa
		    [value] => 1007.8
		)

	    [cloudiness] => Array
		(
		    [id] => NN
		    [percent] => 41.2
		)

	    [fog] => Array
		(
		    [id] => FOG
		    [percent] => 0.0
		)

	    [lowClouds] => Array
		(
		    [id] => LOW
		    [percent] => 37.6
		)

	    [mediumClouds] => Array
		(
		    [id] => MEDIUM
		    [percent] => 5.7
		)

	    [highClouds] => Array
		(
		    [id] => HIGH
		    [percent] => 0.0
		)

	    [precipitation] => Array
		(
		    [unit] => mm
		    [value] => 0.0
		    [minvalue] => 0.0
		    [maxvalue] => 0.0
		)

	    [symbol] => Array
		(
		    [id] => LIGHTCLOUD
		    [number] => 2
		)

	)

    [1305558000] => Array
	(
	    [date] => Array
		(
		    [epoc] => 1305558000
		    [iso] => 2011-05-17T01:00:00Z
		)

	    [temperature] => Array
		(
		    [id] => TTT
		    [unit] => celcius
		    [value] => 6.0
		)

	    [windDirection] => Array
		(
		    [id] => dd
		    [deg] => 227.9
		    [name] => SW
		)

	    [windSpeed] => Array
		(
		    [id] => ff
		    [mps] => 1.6
		    [beaufort] => 1
		    [name] => Flau vind
		)

	    [humidity] => Array
		(
		    [value] => 90.1
		    [unit] => percent
		)

	    [pressure] => Array
		(
		    [id] => pr
		    [unit] => hPa
		    [value] => 1003.2
		)

	    [cloudiness] => Array
		(
		    [id] => NN
		    [percent] => 2.7
		)

	    [fog] => Array
		(
		    [id] => FOG
		    [percent] => 0.0
		)

	    [lowClouds] => Array
		(
		    [id] => LOW
		    [percent] => 2.7
		)

	    [mediumClouds] => Array
		(
		    [id] => MEDIUM
		    [percent] => 0.3
		)

	    [highClouds] => Array
		(
		    [id] => HIGH
		    [percent] => 0.0
		)

	    [precipitation] => Array
		(
		    [unit] => mm
		    [value] => 0.0
		    [minvalue] => 0.0
		    [maxvalue] => 0.0
		)

	    [symbol] => Array
		(
		    [id] => SUN
		    [number] => 1
		)

	)

)

```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

4480d ago

### Community

Maintainers

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

---

Top Contributors

[![hash-bang](https://avatars.githubusercontent.com/u/624527?v=4)](https://github.com/hash-bang "hash-bang (7 commits)")

---

Tags

weather

### Embed Badge

![Health badge](/badges/hashbang-wunderground/health.svg)

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

###  Alternatives

[cmfcmf/openweathermap-php-api

A PHP API to parse weather data from OpenWeatherMap.org. This wrapper tries to normalise and abstract the data and remove inconsistencies.

3371.3M7](/packages/cmfcmf-openweathermap-php-api)[rakibdevs/openweather-laravel-api

Laravel package to connect https://openweathermap.org/ to get customized weather data for any location on the globe immediately

7651.3k](/packages/rakibdevs-openweather-laravel-api)[guhelski/forecast-php

Drop dead simple Dark Sky API wrapper in PHP

38144.3k](/packages/guhelski-forecast-php)[vemcogroup/laravel-weather

Weather package for Laravel to use different providers to get weather info

5426.0k](/packages/vemcogroup-laravel-weather)

PHPackages © 2026

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