3assy2018 / nationals
a package made for Laravel Developers To Add Database Of All Countries And Regions Around The World
Requires
- illuminate/support: ~5|~6|~7
- ixudra/curl: 6.16.0
Requires (Dev)
- orchestra/testbench: ~3.0
- phpunit/phpunit: ~6.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-05 13:30:13 UTC
README
Laravel Nationals provides a bundled database of countries and regions for Laravel 8-12 applications without requiring any external API calls.
Installation
Via Composer
$ composer require 3assy2018/nationals
The package uses Laravel's package auto-discovery; no manual provider or alias registration is necessary.
Usage
Run the artisan commands to migrate and seed the bundled data:
php artisan nationals:start
php artisan region:add *
nationals:start publishes the package migrations and seeds the countries table.
region:add seeds regions for all countries or for selected ones:
php artisan region:add --code=EG --code=US
The commands read from static JSON files shipped with the package, so seeding does not require a network connection.
Change log
Please see the changelog for more information on what has changed recently.
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email author email instead of using the issue tracker.
Credits
License
license. Please see the license file for more information.