PHP code example of elytica / weatherbit
1. Go to this page and download the library: Download elytica/weatherbit 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/ */
elytica / weatherbit example snippets
use elytica;
$settings = ['key' => 'API_KEY',
'hours' => 48];
$weather = new elytica\WeatherBit($settings);
print_r($weather->forecast_hourly(0.0, 0.0)->data);