1. Go to this page and download the library: Download decole/yr-no 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/ */
(new YrNoClient('2-553287', 'en'))->location()->suggest('moscow');
use Decole\YrNo\YrNoClient;
$location = '2-553287';
$lang = 'en';
$api = new YrNoClient($location, $lang);
$data = $api->location()->suggest('moscow'); // Read on to explore all available methods
//Get locations by current city
YrNoClient::location()->get();
//Forecast by current city
YrNoClient::location()->foreCast();
//Weather forecast current hour by current city
YrNoClient::location()->currentHour();
//Celestial events by current city
YrNoClient::location()->celestialEvents();
//Search city id, region id and another city params
YrNoClient::location()->suggest('some city');
//get article
YrNoClient::article()->get();
//Get region by region id
YrNoClient::region()->get('NO');
//Get region water temperatures
YrNoClient::region()->waterTemperatures('NO-42');
//Service Announcement app by yr.no cite
YrNoClient::serviceAnnouncement()->get();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.