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

ActiveLibrary

flairuk/laravel-countries
=========================

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

010PHP

Since Apr 11Pushed 7y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#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 Laravel 5 only, older versions of Laravel should use version 1.3.4 instead**

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

[](#installation)

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

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

```

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

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

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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/b79e7285faffd83f2215b835e6e5eeed3bdb3bb88db26a3e9eca259053bed4c8?d=identicon)[ijeffro](/maintainers/ijeffro)

---

Top Contributors

[![ijeffro](https://avatars.githubusercontent.com/u/14099877?v=4)](https://github.com/ijeffro "ijeffro (16 commits)")

### Embed Badge

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

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

PHPackages © 2026

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