Skip to content

PHP SDK

Official PHP SDK for api.gis.ph, with first-class support for Laravel.

Terminal window
composer require yahaaylabs/gis.ph-sdk-php
use GisPh\Client;
$client = new Client(['access_token' => 'YOUR_TOKEN']);
$results = $client->barangays()->search('Manila');

The SDK provides a Facade for easy access in Laravel applications.

use GisPh\Laravel\Facades\GisPh;
$results = GisPh::barangays()->search('Manila');

This SDK requires an Access Token or API Key from gis.ph. You can sign up and retrieve your credentials from your account dashboard.