Skip to content

Laravel package for Singapore's open data API. And the list of regions, areas, and subzones data

License

Notifications You must be signed in to change notification settings

singfuse/singapore-laravel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

singapore-laravel

Tests Packagist Version

Laravel package for Singapore's open data API https://data.gov.sg and regions, areas, and subzones data

Installation

The package vinkas/singapore-laravel can be installed using composer via Packagist.

composer require vinkas/singapore-laravel

Usage

You can simply call the API endpoints by using the Singapore facade.

use Vinkas\Singapore\Facade as Singapore;

$response = Singapore::api()->weather()->rainfall();
$data = $response->object()->data;

$stations = $data->stations;
$readings = $data->readings;

Also, you can get all the details of Singapore regions, areas, and subzones from the classes below.

Singapore::regions();
Singapore::areas();
Singapore::subzones();

About

Laravel package for Singapore's open data API. And the list of regions, areas, and subzones data

Topics

Resources

License

Stars

Watchers

Forks

Languages