定制 yahaaylabs/gis.ph-sdk-php 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

yahaaylabs/gis.ph-sdk-php

最新稳定版本:v0.1.5

Composer 安装命令:

composer require yahaaylabs/gis.ph-sdk-php

包简介

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

README 文档

README

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

Roadmap

Phase 1: Core SDK

  • Basic HTTP client wrapper (Guzzle)
  • Configuration management
  • Barangay Resource (list, get, search)
  • Province Resource (list, get)
  • Error handling (structured exceptions)

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.

Usage

Standard PHP

use GisPh\Client;

$client = new Client(['access_token' => 'YOUR_TOKEN']);
$results = $client->barangays()->search('Manila');

Laravel

use GisPh\Laravel\Facades\GisPh;

$results = GisPh::barangays()->search('Manila');

Phase 2: Laravel Integration

  • Laravel Service Provider
  • Configuration publishing
  • Facade support
  • Automatic authentication injection

Phase 3: Advanced Features

  • Geographical utilities
  • Result caching (Laravel cache integration)
  • Metadata helpers

Local Development & Testing

To test this SDK locally in another project (e.g., a Laravel application) without publishing it to Packagist:

  1. In your consumer project's composer.json, add this repository:
    {
        "repositories": [
            {
                "type": "path",
                "url": "../gis.ph-sdk-php"
            }
        ]
    }
  2. Run the install command:
    composer require yahaaylabs/gis.ph-sdk-php:dev-main

Project Structure

...

统计信息

  • 总下载量: 2
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 4
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-02-15