PHP SDK
Official PHP SDK for api.gis.ph, with first-class support for Laravel.
Installation
Section titled “Installation”composer require yahaaylabs/gis.ph-sdk-phpStandard PHP
Section titled “Standard PHP”use GisPh\Client;
$client = new Client(['access_token' => 'YOUR_TOKEN']);$results = $client->barangays()->search('Manila');Laravel
Section titled “Laravel”The SDK provides a Facade for easy access in Laravel applications.
use GisPh\Laravel\Facades\GisPh;
$results = GisPh::barangays()->search('Manila');Authentication
Section titled “Authentication”This SDK requires an Access Token or API Key from gis.ph. You can sign up and retrieve your credentials from your account dashboard.