abr4xas/location

This is my package location

Fund package maintenance!
abr4xas

v6.0.0 2023-04-10 01:45 UTC

README

Latest Version on Packagist GitHub Tests Action Status Total Downloads

Import states > cities > neighborhood from specific country.

Installation

You can install the package via composer:

composer require abr4xas/location

You can publish and run the migrations with:

php artisan vendor:publish --provider="Abr4xas\Location\LocationServiceProvider" --tag="location-migrations"
php artisan migrate

Usage

php artisan import:states-from AR <token>
php artisan import:cities <token>
php artisan import:neighborhoods <token>

NOTE: You need to generate an access token. You can do that here.

country list:
country: AR,
name: Argentina,
country: BO,
name: Bolivia,
country: BR,
name: Brasil,
country: CL,
name: Chile,
country: CN,
name: China,
country: CO,
name: Colombia,
country: CR,
name: Costa Rica,
country: CBT,
name: Cross Border Trade,
country: EC,
name: Ecuador,
country: SV,
name: El Salvador,
country: GT,
name: Guatemala,
country: HN,
name: Honduras,
country: MX,
name: Mexico,
country: NI,
name: Nicaragua,
country: PA,
name: Panamá,
country: PY,
name: Paraguay,
country: PE,
name: Peru,
country: PT,
name: Portugal,
country: PR,
name: Puerto Rico,
country: GB,
name: Reino Unido,
country: DO,
name: República Dominicana,
country: UY,
name: Uruguay,
country: VE,
name: Venezuela,

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

I'm using Mercado Libre API for this package. Kudos to all MeLi devs <3

License

The MIT License (MIT). Please see License File for more information.