Converts Figma frames into front-end code for various mobile frameworks.

mcpro
A basic RESTful API for getting all the cities, municipality and provinces in the Philippines.
3 years
Works with Finder
1
Github Watches
6
Github Forks
23
Github Stars
MCPro is abbreviation of Municipalities, Cities and Provinces in the Philippines
A basic RESTful API for getting all the cities, municipality and provinces in the Philippines.
Installation
- Step1: Add this to your root
composer.json
"require": {
"jsdecena/mcpro": "1.1.*"
}
- Step2: Add this to your
config/app.php
inproviders
array
'providers' => [
Jsdecena\MCPro\McproServiceProvider::class,
]
-
Step3: Run this in your terminal
php artisan vendor:publish
-
Step4: Rename
.env.example
to.env
and set your database credentials -
Step5: Run this in your terminal
php artisan key:generate
-
Step6: Add these lines in the
/database/seeds/DatabaseSeeder.php
$this->call('CountryTableSeeder');
$this->call('ProvincesTableSeeder');
$this->call('CitiesTableSeeder');
$this->call('BarangayTableSeeder');
-
Step7: Run this in your terminal
composer dump-autoload && php artisan migrate --seed && php artisan serve
-
Step8: Go to http://localhost:8000/api/v1/country
-
Enjoy!
Endpoints
-
/api/v1/country
- List all the countries -
/api/v1/country/{country_id}
- Details of the country ( PH is id:169 ) -
/api/v1/country/{country_id}/province
- List all the provinces of the country (Currently for the PH) -
/api/v1/country/{country_id}/province/{province_id}
- Details of the province -
/api/v1/country/{country_id}/province/{province_id}/city
- Cities ( and Municipalities) of the province -
/api/v1/country/{country_id}/province/{province_id}/city/{city_id}
- Details of the city -
/api/v1/country/{country_id}/province/{province_id}/city/{city_id}/barangay
- List all the barangays of the City (or Municipality)
Future
-
Reverse lookup - Giving the
city_id
and shows theprovince
and the country etc. -
404 Exception handling
Credits:
-
Oj Tibi on PH Provinces and Cities for the data.
-
Eacomm on PH Barangays - for the list of barangays in the Philippines.
DISCLAIMER
The data is offered FOR FREE and anybody can use at their own risk. The data is offered AS IS. While I will strive to keep this data up to date, I do not claim that this is a comprehensive listing and some data may be outdated or missing. I will not be held liable for any inaccuracies or errors found in the data. I am not responsible for final end-user utilization of this data and any damages the user might incur in its use.
相关推荐
I find academic articles and books for research and literature reviews.
Confidential guide on numerology and astrology, based of GG33 Public information
Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.
Advanced software engineer GPT that excels through nailing the basics.
Delivers concise Python code and interprets non-English comments
💬 MaxKB is an open-source AI assistant for enterprise. It seamlessly integrates RAG pipelines, supports robust workflows, and provides MCP tool-use capabilities.
MCP server to provide Figma layout information to AI coding agents like Cursor
The all-in-one Desktop & Docker AI application with built-in RAG, AI agents, No-code agent builder, MCP compatibility, and more.
Micropython I2C-based manipulation of the MCP series GPIO expander, derived from Adafruit_MCP230xx
AI Agents & MCPs & AI Workflow Automation • (280+ MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
Reviews

user_xljXZR4W
I've been using mcpro by jsdecena for a while now, and it is absolutely fantastic! The flexibility and functionality it offers are unmatched. It greatly simplifies complex tasks and enhances productivity. Highly recommended for anyone looking for a reliable and efficient application. Check it out at https://github.com/jsdecena/mcpro.