rootscratch/psgc
最新稳定版本:v1.1.0
Composer 安装命令:
composer require rootscratch/psgc
包简介
Philippine Standard Geographic Code API By Rootscratch
README 文档
README
Overview
The PSGC-API provides access to the Philippine Standard Geographic Code (PSGC) data. This API allows users to retrieve information about regions, provinces, cities, municipalities, and barangays in the Philippines.
Features
- Retrieve data for all regions, provinces, cities, municipalities, and barangays
- Filter data based on specific criteria
- Easy integration with other applications
Installation
To install the PSGC-API via Composer, run the following command:
composer require rootscratch/psgc
Usage
To use the PSGC-API in your PHP project, include the Composer autoloader:
require 'vendor/autoload.php'; use Rootscratch\PSGC\PSGC; $psgcApi = new PSGC(); $regions = $psgcApi->Regions(); print_r($regions);
$psgcApi->Regions($region_id = null)- Retrieve all regions$psgcApi->Provinces($province_id = null)- Retrieve all provinces$psgcApi->MunicipalAndCities($MunicipalAndCities_ID = null)- Retrieve all cities & municipalities$psgcApi->Municipal($municipal_id = null)- Retrieve all Municipal$psgcApi->City($city_id = null)- Retrieve all City$psgcApi->Barangays($barangay_id = null)- Retrieve all barangays
Map Locator
To view a sample of the map locator, visit this link.
Contributing
Contributions are welcome! Please fork the repository and submit a pull request.
Contact
For any questions or inquiries, please contact Rootscratch at jaycee@rootscratch.com.
Packagist
The PSGC-API is also available on Packagist: rootscratch/psgc
统计信息
- 总下载量: 182
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-02-12

