Skip to content

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.

License

Notifications You must be signed in to change notification settings

jaycee0610/PSGC-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Screenshot

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.

https://psgc.rootscratch.com/

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

Map

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

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages