PHPackages                             yayann/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. yayann/laravel-countries

ActiveLaravel-library

yayann/laravel-countries
========================

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

1.2.2(11y ago)2626MITPHPPHP &gt;=5.3.0

Since Jun 27Pushed 11y ago1 watchersCompare

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

READMEChangelog (2)DependenciesVersions (6)Used By (0)

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

[](#laravel-countries)

[![Total Downloads](https://camo.githubusercontent.com/b0a6b03eff0fa7cabd350d34b63f2640d79be2a0cf6bf9cee5b61a904c5a40da/68747470733a2f2f706f7365722e707567782e6f72672f7765627061747365722f6c61726176656c2d636f756e74726965732f646f776e6c6f6164732e737667)](https://packagist.org/packages/webpatser/laravel-countries)[![Latest Stable Version](https://camo.githubusercontent.com/621a860a344f7155bdbb0a56839f37db620c0e46a8697d78d051c24c03992026/68747470733a2f2f706f7365722e707567782e6f72672f7765627061747365722f6c61726176656c2d636f756e74726965732f762f737461626c652e737667)](https://packagist.org/packages/webpatser/laravel-countries)[![Latest Unstable Version](https://camo.githubusercontent.com/63637fe278310c127bb934a78cee2ed40db454d5584d755a13162a3d8713797d/68747470733a2f2f706f7365722e707567782e6f72672f7765627061747365722f6c61726176656c2d636f756e74726965732f762f756e737461626c652e737667)](https://packagist.org/packages/webpatser/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)

Add `webpatser/laravel-countries` to `composer.json`.

```
"webpatser/laravel-countries": "dev-master"

```

Run `composer update` to pull down the latest version of Country List.

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

```
'providers' => array(
    'Webpatser\Countries\CountriesServiceProvider',
)

```

Now add the alias.

```
'aliases' => array(
    'Countries' => 'Webpatser\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 config:publish webpatser/laravel-countries

```

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

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~71 days

Total

4

Last Release

4128d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4cbe61f46991a57cd4f5f0643e5965abe06f92502eca3add9f92a575b2373b6c?d=identicon)[yayann](/maintainers/yayann)

---

Top Contributors

[![webpatser](https://avatars.githubusercontent.com/u/25720?v=4)](https://github.com/webpatser "webpatser (8 commits)")[![paulkned](https://avatars.githubusercontent.com/u/5045195?v=4)](https://github.com/paulkned "paulkned (4 commits)")[![yayann](https://avatars.githubusercontent.com/u/204421?v=4)](https://github.com/yayann "yayann (3 commits)")[![taftse](https://avatars.githubusercontent.com/u/679269?v=4)](https://github.com/taftse "taftse (2 commits)")

---

Tags

laravelcountriesiso\_3166\_2iso\_3166\_3

### Embed Badge

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

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

###  Alternatives

[webpatser/laravel-countries

Modern Laravel Countries package providing ISO 3166-2, ISO 3166-3, currency, capital and more for all countries. Compatible with Laravel 11.x and 12.x.

8272.8M8](/packages/webpatser-laravel-countries)[monarobase/country-list

List of all countries with names and ISO 3166-1 codes in all languages and data formats for Laravel

2672.7M7](/packages/monarobase-country-list)[bhuvidya/laravel-countries

Laravel Countries is a bundle for Laravel, providing Almost ISO 3166\_2, 3166\_3, currency, Capital and more for all countries. Bug kudos to Christoph Kempen, on whose work this package is heavily based (webpatser/laravel-countries).

3229.9k1](/packages/bhuvidya-laravel-countries)

PHPackages © 2026

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