PHP code example of vinkas / singapore
1. Go to this page and download the library: Download vinkas/singapore 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/ */
vinkas / singapore example snippets
use Vinkas\Singapore\Api\Connector;
$connector = new Connector();
$response = $connector->weather()->rainfall();
$data = $response->object()->data;
$stations = $data->stations;
$readings = $data->readings;
use Vinkas\Singapore\Data\Regions;
use Vinkas\Singapore\Data\Areas;
use Vinkas\Singapore\Data\Subzones;
use Vinkas\Singapore\Data\PostalDistricts;
Regions::all();
Areas::all();
Subzones::all();
PostalDistricts::all();