PHPackages                             perlur/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. perlur/laravel-countries

ActivePackage[Utility &amp; Helpers](/categories/utility)

perlur/laravel-countries
========================

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

1.5.5(6y ago)18[1 PRs](https://github.com/PERLUR/laravel-countries/pulls)AGPL-3.0PHP

Since Jun 27Pushed 1y ago1 watchersCompare

[ Source](https://github.com/PERLUR/laravel-countries)[ Packagist](https://packagist.org/packages/perlur/laravel-countries)[ Docs](https://github.com/PERLUR/laravel-countries)[ RSS](/packages/perlur-laravel-countries/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (2)Versions (23)Used By (0)

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

[](#laravel-countries)

[![Total Downloads](https://camo.githubusercontent.com/4320a2478f67278a06c047a38234d3a467d0dbae657f386a71df6a95b637450a/68747470733a2f2f706f7365722e707567782e6f72672f7065726c75722f6c61726176656c2d636f756e74726965732f646f776e6c6f6164732e737667)](https://packagist.org/packages/perlur/laravel-countries)[![Latest Stable Version](https://camo.githubusercontent.com/67d9443c93492965d8c428a8d90cb96f816565cc32413f51e3fd16800e174e5a/68747470733a2f2f706f7365722e707567782e6f72672f7065726c75722f6c61726176656c2d636f756e74726965732f762f737461626c652e737667)](https://packagist.org/packages/perlur/laravel-countries)[![Latest Unstable Version](https://camo.githubusercontent.com/63637fe278310c127bb934a78cee2ed40db454d5584d755a13162a3d8713797d/68747470733a2f2f706f7365722e707567782e6f72672f7765627061747365722f6c61726176656c2d636f756e74726965732f762f756e737461626c652e737667)](https://packagist.org/packages/perlur/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)

Run `composer require perlur/laravel-countries` to add `perlur/laravel-countries` to `composer.json`.

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

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

```
'providers' => [
    /*
     * Package Service Providers...
     */
    PERLUR\Countries\CountriesServiceProvider::class,
]

```

Now add the alias.

```
'aliases' => [
    'Country'      => PERLUR\Countries\CountriesFacade::class,
]

```

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::class);
$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

33

—

LowBetter than 75% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor3

3 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 ~94 days

Recently: every ~212 days

Total

20

Last Release

2545d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a9596a4e5851e0e646c156077e832b17f361c4d3eace979062e0b4f923710177?d=identicon)[mark-stopka](/maintainers/mark-stopka)

---

Top Contributors

[![webpatser](https://avatars.githubusercontent.com/u/25720?v=4)](https://github.com/webpatser "webpatser (32 commits)")[![paulkned](https://avatars.githubusercontent.com/u/5045195?v=4)](https://github.com/paulkned "paulkned (13 commits)")[![mark-stopka](https://avatars.githubusercontent.com/u/18139116?v=4)](https://github.com/mark-stopka "mark-stopka (9 commits)")[![mateusfccp](https://avatars.githubusercontent.com/u/4605213?v=4)](https://github.com/mateusfccp "mateusfccp (9 commits)")[![foo99](https://avatars.githubusercontent.com/u/15682612?v=4)](https://github.com/foo99 "foo99 (4 commits)")[![msamec](https://avatars.githubusercontent.com/u/4154034?v=4)](https://github.com/msamec "msamec (3 commits)")[![tsiedsma](https://avatars.githubusercontent.com/u/2625597?v=4)](https://github.com/tsiedsma "tsiedsma (3 commits)")[![taftse](https://avatars.githubusercontent.com/u/679269?v=4)](https://github.com/taftse "taftse (2 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![jpmurray](https://avatars.githubusercontent.com/u/1550428?v=4)](https://github.com/jpmurray "jpmurray (1 commits)")[![ferdirn](https://avatars.githubusercontent.com/u/4104384?v=4)](https://github.com/ferdirn "ferdirn (1 commits)")[![ognjenm](https://avatars.githubusercontent.com/u/609541?v=4)](https://github.com/ognjenm "ognjenm (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)")[![dmsherazi](https://avatars.githubusercontent.com/u/6149070?v=4)](https://github.com/dmsherazi "dmsherazi (1 commits)")[![twmbx](https://avatars.githubusercontent.com/u/536306?v=4)](https://github.com/twmbx "twmbx (1 commits)")[![watscho](https://avatars.githubusercontent.com/u/35995947?v=4)](https://github.com/watscho "watscho (1 commits)")

---

Tags

laravelcountriesiso\_3166\_2iso\_3166\_3

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/perlur-laravel-countries/health.svg)](https://phpackages.com/packages/perlur-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)[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[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)[matt-daneshvar/laravel-survey

Create surveys inside your Laravel app

28770.3k](/packages/matt-daneshvar-laravel-survey)[usamamuneerchaudhary/country-city-state

Country City State Data Provider for Laravel 12+

242.6k](/packages/usamamuneerchaudhary-country-city-state)[woodsandwalker/laravel-countries

Laravel Countries is a bundle for Laravel providing ISO 3166\_2 codes for all countries along with a country model, cast and validation rule.

109.5k](/packages/woodsandwalker-laravel-countries)

PHPackages © 2026

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