This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

An OpenWeatherMap API helper for PHP.

v0.2 2015-07-14 00:16 UTC

This package is auto-updated.

Last update: 2021-11-23 21:51:24 UTC


Latest Stable Version Total Downloads Latest Unstable Version License

Helper classes for OpenWeatherMap.

This package was once part of the Dengo Framework. Now it's available on the Tamarillo projects.



// Composer Autoloader
require_once 'vendor/autoload.php';

// The Location for Stuttgart, Germany
$weather = Tamarillo\Weather\Weather::getWeather([ 48.782318, 9.17702 ];

echo $wether->weather()->id();    // The ID of the current weather

echo $wether->city();             // The name of the City
echo $wether->city()->id();       // The ID of the City
var_dump($wether->geo());         // An array of the coordinations of the City

echo $wether->weather();          // The current weather description
echo $wether->weather()->icon();  // The current weather icon