PHP code example of tamarillo / weather
1. Go to this page and download the library: Download tamarillo/weather library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
tamarillo / weather example snippets
// Composer Autoloader
t, 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