PHP code example of lfischer / wunderground-api
1. Go to this page and download the library: Download lfischer/wunderground-api 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/ */
lfischer / wunderground-api example snippets
// By default the current conditions will be requested in english language.
$weather = (new \lfischer\wunderground\API('<API-key here>'))->getByLocation('Germany', 'Dusseldorf');
use lfischer\wunderground;
$weather = (new API('<API-key here>'))
->getConditions()
->byLocation('Germany', 'Dusseldorf')
->fetch()
->asArray();