PHPackages                             vinkas/singapore-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. vinkas/singapore-api

Abandoned → [vinkas/singapore](/?search=vinkas%2Fsingapore)Library[API Development](/categories/api)

vinkas/singapore-api
====================

PHP SDK for Singapore's open data API

v0.4.0(1y ago)027MITPHP

Since Nov 24Pushed 1y agoCompare

[ Source](https://github.com/singfuse/singapore-php)[ Packagist](https://packagist.org/packages/vinkas/singapore-api)[ RSS](/packages/vinkas-singapore-api/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (2)Versions (8)Used By (0)

singapore-php
=============

[](#singapore-php)

[![Tests](https://github.com/vinkashq/singapore-php/actions/workflows/tests.yml/badge.svg)](https://github.com/vinkashq/singapore-php/actions/workflows/tests.yml) [![Packagist Version](https://camo.githubusercontent.com/2441a3fa96f7060f1c775726651258e18b4cd9e65e357aebcff27b203516b0eb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f76696e6b61732f73696e6761706f72653f6c6f676f3d7061636b6167697374266c6f676f436f6c6f723d303030303030266c6162656c3d76657273696f6e266c6162656c436f6c6f723d64396530663326636f6c6f723d663238643161)](https://packagist.org/packages/vinkas/singapore)

PHP SDK for Singapore's open data API

Installation
------------

[](#installation)

The package [`vinkas/singapore`](https://packagist.org/packages/vinkas/singapore) can be installed using composer via Packagist.

```
composer require vinkas/singapore

```

Usage
-----

[](#usage)

You can simply call the API endpoints by using the `Connector` class.

```
use Vinkas\Singapore\Api\Connector;

$connector = new Connector();
$response = $connector->weather()->rainfall();
$data = $response->object()->data;

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

Also, you can get all the details of Singapore regions, areas, subzones, and postal districts from the classes below. Some of these lists are created from the MIT Node package

```
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();
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance41

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~9 days

Total

6

Last Release

492d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/75502944bc293e8aa5b6629e8ac575f710c37e7c7b30663538416c520c01487b?d=identicon)[vinothkannans](/maintainers/vinothkannans)

---

Top Contributors

[![vinothkannans](https://avatars.githubusercontent.com/u/9372109?v=4)](https://github.com/vinothkannans "vinothkannans (20 commits)")

---

Tags

phpphp-librarysingapore

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/vinkas-singapore-api/health.svg)

```
[![Health](https://phpackages.com/badges/vinkas-singapore-api/health.svg)](https://phpackages.com/packages/vinkas-singapore-api)
```

###  Alternatives

[skagarwal/google-places-api

Google Places Api

1913.0M8](/packages/skagarwal-google-places-api)[saloonphp/laravel-plugin

The official Laravel plugin for Saloon

765.7M125](/packages/saloonphp-laravel-plugin)[saloonphp/rate-limit-plugin

Handle rate limits beautifully in your Saloon API integrations or SDKs

201.3M44](/packages/saloonphp-rate-limit-plugin)[myoutdeskllc/salesforce-php

salesforce library for php8+

1560.8k](/packages/myoutdeskllc-salesforce-php)[codebar-ag/laravel-docuware

DocuWare integration with Laravel

1221.1k](/packages/codebar-ag-laravel-docuware)[sandorian/moneybird-api-php

Moneybird API client for PHP

127.3k](/packages/sandorian-moneybird-api-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
