Search by

3assy2018 / nationals

Mohamed1997

a package made for Laravel Developers To Add Database Of All Countries And Regions Around The World

Package info

github.com/3assy2018/nationals

pkg:composer/3assy2018/nationals

Statistics

Installs: 195

Dependents: 0

Suggesters: 0

Stars: 42

Open Issues: 1

1.2 2020-04-09 16:30 UTC

This package is auto-updated.

Last update: 2026-11-05 13:30:13 UTC


README

Total Downloads

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.