PHP code example of fatindeed / seniverse-api

1. Go to this page and download the library: Download fatindeed/seniverse-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/ */

    

fatindeed / seniverse-api example snippets


$weather = new SeniverseApi\Weather([
    'uid' => 'your public key',
    'key' => 'your private key'
]);

$location = new SeniverseApi\Location;
$result = $location->search('WTW3SJ5ZBJUY');

$weather = new SeniverseApi\Weather;
$result = $weather->now('WTW3SJ5ZBJUY');

$weather = new SeniverseApi\Weather;
$result = $weather->daily('WTW3SJ5ZBJUY');

$life = new SeniverseApi\Life;
$result = $life->suggestion('WTW3SJ5ZBJUY');