abr4xas / location
This is my package location
Fund package maintenance!
abr4xas
Requires
- php: ^8.1
- guzzlehttp/guzzle: ^7.5
- spatie/laravel-package-tools: ^1.14
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.9
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^8.0
- pestphp/pest: ^2.0
- pestphp/pest-plugin-arch: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- spatie/laravel-ray: ^1.26
This package is auto-updated.
Last update: 2024-12-09 22:37:28 UTC
README
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.