PHPackages                             admsys/laravel-countries - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. admsys/laravel-countries

ActiveLibrary

admsys/laravel-countries
========================

Laravel Countries is a bundle for Laravel, providing Almost ISO 3166\_2, 3166\_3, currency, Capital and more for all countries.

061PHP

Since Sep 1Pushed 2y agoCompare

[ Source](https://github.com/admsys-spa/laravel-countries)[ Packagist](https://packagist.org/packages/admsys/laravel-countries)[ RSS](/packages/admsys-laravel-countries/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (1)Used By (1)

Laravel Countries
=================

[](#laravel-countries)

[![Total Downloads](https://camo.githubusercontent.com/e68ca8504825314ce9ffb912ffd68e3d89f4cfd00430ea77f2c29b61e8f8a6eb/68747470733a2f2f706f7365722e707567782e6f72672f61646d7379732f6c61726176656c2d636f756e74726965732f646f776e6c6f6164732e737667)](https://packagist.org/packages/admsys/laravel-countries)[![Latest Stable Version](https://camo.githubusercontent.com/bc23567b94509bd7d7d7c4306fe90157de318df34c8a277f2d6b2434fc4341f6/68747470733a2f2f706f7365722e707567782e6f72672f61646d7379732f6c61726176656c2d636f756e74726965732f762f737461626c652e737667)](https://packagist.org/packages/admsys/laravel-countries)[![Latest Unstable Version](https://camo.githubusercontent.com/70d49d178edec2288dbdf7cafe1a9ac3028f049e33e887f3de1cec1cd59d17ea/68747470733a2f2f706f7365722e707567782e6f72672f61646d7379732f6c61726176656c2d636f756e74726965732f762f756e737461626c652e737667)](https://packagist.org/packages/admsys/laravel-countries)

Laravel Countries is a bundle for Laravel, providing Almost ISO 3166\_2, 3166\_3, currency, Capital and more for all countries.

Installation
------------

[](#installation)

```
composer require admsys/laravel-countries

```

Edit `app/config/app.php` and add the `provider` and `filter`

```
'providers' => [
    'Admsys\Countries\CountriesServiceProvider',
]

```

Now add the alias.

```
'aliases' => [
    'Countries' => 'Admsys\Countries\CountriesFacade',
]

```

Model
-----

[](#model)

You can start by publishing the configuration. This is an optional step, it contains the table name and does not need to be altered. If the default name `countries` suits you, leave it. Otherwise run the following command

```
$ php artisan vendor:publish

```

Next generate the migration file:

```
$ php artisan countries:migration

```

It will generate the `_setup_countries_table.php` migration and the `CountriesSeeder.php` seeder. To make sure the data is seeded insert the following code in the `seeds/DatabaseSeeder.php`

```
//Seed the countries
$this->call('CountriesSeeder');
$this->command->info('Seeded the countries!');

```

You may now run it with the artisan migrate command:

```
$ php artisan migrate --seed

```

After running this command the filled countries table will be available

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity21

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/598dc01eeeff08109f40c0eec3d4309d41c5aedbf18fbe2551423e30000662ec?d=identicon)[adiazm](/maintainers/adiazm)

---

Top Contributors

[![webpatser](https://avatars.githubusercontent.com/u/25720?v=4)](https://github.com/webpatser "webpatser (44 commits)")[![paulkned](https://avatars.githubusercontent.com/u/5045195?v=4)](https://github.com/paulkned "paulkned (13 commits)")[![mateusfccp](https://avatars.githubusercontent.com/u/4605213?v=4)](https://github.com/mateusfccp "mateusfccp (9 commits)")[![juliangums](https://avatars.githubusercontent.com/u/22907521?v=4)](https://github.com/juliangums "juliangums (7 commits)")[![adiazm](https://avatars.githubusercontent.com/u/13708873?v=4)](https://github.com/adiazm "adiazm (6 commits)")[![foo99](https://avatars.githubusercontent.com/u/15682612?v=4)](https://github.com/foo99 "foo99 (4 commits)")[![tsiedsma](https://avatars.githubusercontent.com/u/2625597?v=4)](https://github.com/tsiedsma "tsiedsma (3 commits)")[![msamec](https://avatars.githubusercontent.com/u/4154034?v=4)](https://github.com/msamec "msamec (3 commits)")[![robindirksen1](https://avatars.githubusercontent.com/u/22446895?v=4)](https://github.com/robindirksen1 "robindirksen1 (2 commits)")[![taftse](https://avatars.githubusercontent.com/u/679269?v=4)](https://github.com/taftse "taftse (2 commits)")[![MannikJ](https://avatars.githubusercontent.com/u/1841856?v=4)](https://github.com/MannikJ "MannikJ (1 commits)")[![ferdirn](https://avatars.githubusercontent.com/u/4104384?v=4)](https://github.com/ferdirn "ferdirn (1 commits)")[![multiwebinc](https://avatars.githubusercontent.com/u/901732?v=4)](https://github.com/multiwebinc "multiwebinc (1 commits)")[![ognjenm](https://avatars.githubusercontent.com/u/609541?v=4)](https://github.com/ognjenm "ognjenm (1 commits)")[![olenichphp](https://avatars.githubusercontent.com/u/9198191?v=4)](https://github.com/olenichphp "olenichphp (1 commits)")[![eigan](https://avatars.githubusercontent.com/u/41789?v=4)](https://github.com/eigan "eigan (1 commits)")[![pjona](https://avatars.githubusercontent.com/u/170732?v=4)](https://github.com/pjona "pjona (1 commits)")[![ryanrapini](https://avatars.githubusercontent.com/u/286087?v=4)](https://github.com/ryanrapini "ryanrapini (1 commits)")[![stewis](https://avatars.githubusercontent.com/u/1660946?v=4)](https://github.com/stewis "stewis (1 commits)")[![teeli](https://avatars.githubusercontent.com/u/294353?v=4)](https://github.com/teeli "teeli (1 commits)")

### Embed Badge

![Health badge](/badges/admsys-laravel-countries/health.svg)

```
[![Health](https://phpackages.com/badges/admsys-laravel-countries/health.svg)](https://phpackages.com/packages/admsys-laravel-countries)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
