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

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

ezitisitis/laravel-countries
============================

Bundle for Laravel, which provides ISO 3166\_2, 3166\_3, currency, Capital, and more data for all countries

1.3.0(9mo ago)0463↓50%MITPHP

Since Jan 4Pushed 9mo ago1 watchersCompare

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

READMEChangelog (5)Dependencies (1)Versions (6)Used By (0)

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

[](#laravel-countries)

[![Packagist Version](https://camo.githubusercontent.com/9f4574c712111b8880abd80623b978b2f7af2a2753e8589757a9773b3546a43b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f657a69746973697469732f6c61726176656c2d636f756e7472696573)](https://camo.githubusercontent.com/9f4574c712111b8880abd80623b978b2f7af2a2753e8589757a9773b3546a43b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f657a69746973697469732f6c61726176656c2d636f756e7472696573)[![GitHub License](https://camo.githubusercontent.com/63f43aca1932ac9e47648e9c2bb751df2750bdb71c01ea5b617b0ef1d54eaed6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f657a69746973697469732f6c61726176656c2d636f756e7472696573)](https://camo.githubusercontent.com/63f43aca1932ac9e47648e9c2bb751df2750bdb71c01ea5b617b0ef1d54eaed6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f657a69746973697469732f6c61726176656c2d636f756e7472696573)

Bundle for Laravel, which provides ISO 3166\_2, 3166\_3, currency, Capital, and more data for all countries

**Notice: this version is for Laravel 8 and above**

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

[](#installation)

Add `ezitisitis/laravel-countries` to your `composer.json` by running:

```
composer require ezitisitis/laravel-countries
```

Run installation command:

```
php artisan countries:install
```

**NB** Installation command supports `--force` flag/option to force publishing

Run migration command:

```
php artisan migrate
```

Model and data
--------------

[](#model-and-data)

To change model table go to `config/countries.php` and change `table_name` value.

**NB** You will need to make sure that old table is removed.

Now you can seed database by executing:

```
php artisan db:seed --class=CountriesSeeder
```

Or by adding seeder to your DatabaseSeeder:

```
$this->call(CountriesSeeder::class);
```

and executing:

```
php artisan db:seed
```

Credits
-------

[](#credits)

- [Marks Bogdanovs](https://www.ezitisitis.com)

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance58

Moderate activity, may be stable

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~236 days

Total

5

Last Release

275d ago

### Community

Maintainers

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

---

Top Contributors

[![ezitisitis](https://avatars.githubusercontent.com/u/6075434?v=4)](https://github.com/ezitisitis "ezitisitis (12 commits)")

---

Tags

laravelcountriesiso\_3166\_2iso\_3166\_3

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/ezitisitis-laravel-countries/health.svg)](https://phpackages.com/packages/ezitisitis-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)[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4195.3M84](/packages/livewire-volt)[pragmarx/countries-laravel

Countries for Laravel

1471.1M2](/packages/pragmarx-countries-laravel)[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)
