vinkas / singapore-laravel
Laravel package for Singapore's open data API and regions, areas, and subzones data
Installs: 40
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/vinkas/singapore-laravel
Requires
- illuminate/database: ^11.34
- illuminate/support: ^11.34
- vinkas/singapore: ^0.4.0
Requires (Dev)
- laravel/pint: ^1.18
- phpstan/phpstan: ^2.0
This package is auto-updated.
Last update: 2025-10-16 10:17:39 UTC
README
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();