project weather
An OpenWeatherMap API helper for PHP.
tamarillo/weather
An OpenWeatherMap API helper for PHP.
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 1 Open issues
- 3 Versions
- 0 % Grown
Weather API
, (*1)
Helper classes for OpenWeatherMap., (*2)
This package was once part of the Dengo Framework. Now it's available on the Tamarillo projects., (*3)
Examples
<?php
// 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
dev-master
9999999-dev
An OpenWeatherMap API helper for PHP.
Sources
Download
MIT
The Requires
openweathermap
dengophp
tamarillo
v0.2
0.2.0.0
An OpenWeatherMap API helper for PHP.
Sources
Download
MIT
The Requires
openweathermap
dengophp
tamarillo
v0.1
0.1.0.0
An OpenWeatherMap API helper for PHP.
Sources
Download
MIT
The Requires
openweathermap
dengophp
tamarillo