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

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

stephanesoares/laravel-countries
================================

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

v1.2(3y ago)039MITPHPPHP &gt;=5.3.0

Since Aug 25Pushed 3y agoCompare

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

READMEChangelog (3)DependenciesVersions (5)Used By (0)

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

[](#laravel-countries)

[![Total Downloads](https://camo.githubusercontent.com/f7c4c63d77544f24678f4001c820662c70cac899b47ecbb9a54649e05efecc56/68747470733a2f2f706f7365722e707567782e6f72672f7374657068616e65736f617265732f6c61726176656c2d636f756e74726965732f646f776e6c6f6164732e737667)](https://packagist.org/packages/stephanesoares/laravel-countries)[![Latest Stable Version](https://camo.githubusercontent.com/b723194a663b8cd2c67896cac234c94af96946eca88f763a2bb20054f4e6a992/68747470733a2f2f706f7365722e707567782e6f72672f7374657068616e65736f617265732f6c61726176656c2d636f756e74726965732f762f737461626c652e737667)](https://packagist.org/packages/stephanesoares/laravel-countries)[![Latest Unstable Version](https://camo.githubusercontent.com/abca1b9cd4efa67229f17d3f2dcf0e4c12494659786d9f9f8926ce86d7138f27/68747470733a2f2f706f7365722e707567782e6f72672f7374657068616e65736f617265732f6c61726176656c2d636f756e74726965732f762f756e737461626c652e737667)](https://packagist.org/packages/stephanesoares/laravel-countries)

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

**Please note that version 1.4 is Laravel 5 only, older versions of Laravel should use version 1.3.4 instead**

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

[](#installation)

Run `composer required stephanesoares/laravel-countries`

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

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

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

```

Now add the alias.

```
'aliases' => [
    'Countries' => 'StephaneSoares\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 `database/seeders/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

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 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 ~13 days

Total

3

Last Release

1330d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a2047f2a81bcdcc9daaffa835189123a674a3d31bdb5c59bb7e4814611067d0c?d=identicon)[stephanesoares](/maintainers/stephanesoares)

---

Top Contributors

[![webpatser](https://avatars.githubusercontent.com/u/25720?v=4)](https://github.com/webpatser "webpatser (37 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)")[![stephanesoares](https://avatars.githubusercontent.com/u/4375100?v=4)](https://github.com/stephanesoares "stephanesoares (7 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)")[![juliangums](https://avatars.githubusercontent.com/u/22907521?v=4)](https://github.com/juliangums "juliangums (2 commits)")[![taftse](https://avatars.githubusercontent.com/u/679269?v=4)](https://github.com/taftse "taftse (2 commits)")[![robindirksen1](https://avatars.githubusercontent.com/u/22446895?v=4)](https://github.com/robindirksen1 "robindirksen1 (2 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)")[![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)")[![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)")[![ferdirn](https://avatars.githubusercontent.com/u/4104384?v=4)](https://github.com/ferdirn "ferdirn (1 commits)")[![jpmurray](https://avatars.githubusercontent.com/u/1550428?v=4)](https://github.com/jpmurray "jpmurray (1 commits)")

---

Tags

laravelcountriesiso\_3166\_2iso\_3166\_3

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/stephanesoares-laravel-countries/health.svg)](https://phpackages.com/packages/stephanesoares-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)[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)[dougsisk/laravel-country-state

Country &amp; state helper for Laravel.

1681.7M](/packages/dougsisk-laravel-country-state)[dipeshsukhia/laravel-country-state-city-data

Country State City Data Provider

8230.8k](/packages/dipeshsukhia-laravel-country-state-city-data)[stidges/laravel-country-flags

A Laravel wrapper for the stidges/country-flags package

28134.6k](/packages/stidges-laravel-country-flags)[juanparati/iso-codes

A PHP library that provides ISO codes, currencies, languages, timezones and additional geopolitical information

17146.4k](/packages/juanparati-iso-codes)

PHPackages © 2026

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