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

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

dariusiii/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).

v2.0.0(6y ago)0145MITPHP &gt;=7.2.0

Since Nov 30Pushed 2y agoCompare

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

READMEChangelogDependencies (2)Versions (9)Used By (0)

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

[](#laravel-countries)

[![License](https://camo.githubusercontent.com/6c0fc56b6ab510ffde8912af3a12ff69fe9c3c40b968d1937aa242555f9368ed/68747470733a2f2f706f7365722e707567782e6f72672f62687576696479612f6c61726176656c2d636f756e74726965732f6c6963656e73653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/bhuvidya/laravel-countries)[![Total Downloads](https://camo.githubusercontent.com/d2347bf24e0949a15dd90e035967f6cbd341c60135ace5d2f72a0f86db8166e2/68747470733a2f2f706f7365722e707567782e6f72672f62687576696479612f6c61726176656c2d636f756e74726965732f646f776e6c6f6164733f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/bhuvidya/laravel-countries)[![Latest Stable Version](https://camo.githubusercontent.com/bf4458b3367feb8e77f23432ef2a32b6f111f91f2d1dabc8bc4ddd9ffe171caf/68747470733a2f2f706f7365722e707567782e6f72672f62687576696479612f6c61726176656c2d636f756e74726965732f762f737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/bhuvidya/laravel-countries)[![Latest Unstable Version](https://camo.githubusercontent.com/54b3df4c7f82577a6859e37410a67d9d80bdf82456514d16e2608002f5732601/68747470733a2f2f706f7365722e707567782e6f72672f62687576696479612f6c61726176656c2d636f756e74726965732f762f756e737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/bhuvidya/laravel-countries)

**Note I have now switched the semver versioning for my Laravel packages to "match" the latest supported Laravel version.**

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

Big kudos to Christoph Kempen, on whose work this package is **heavily** based (). I ended up doing so many little changes that I thought it best to start my own package. And this is the first package I have put together and added to Packagist etc, so I was keen to learn the whole process!

**Please note that this package was tested on Laravel 5.5 - I cannot guarantee it will work on earlier versions. Sorry.**

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

[](#installation)

Add `bhuvidya/laravel-countries` to your app:

```
$ composer require "bhuvidya/laravel-countries"

```

**If you're using Laravel 5.5, you don't have to edit `app/config/app.php`.**

Otherwise, edit `app/config/app.php` and add the service provider:

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

```

Configuration
-------------

[](#configuration)

You can elect to manage your own configuration. This is an optional step, it only contains the table name and does not need to be altered. If the default table name `countries` suits you, leave it. Otherwise run the following command

```
$ php artisan vendor:publish --provider='Bhuvidya\Countries\CountriesServiceProvider' --tag=config

```

The config file can then be found at `config/countries.php`.

Migrations
----------

[](#migrations)

The service provider automatically adds the package's migrations to your app.

Seeding
-------

[](#seeding)

There is a seeding module in the package. You can either run the seeder manually from the command line:

```
$ php artisan db:seed --class='Bhuvidya\Countries\CountriesSeeder'

```

Otherwise you can add it to one of your app's database seeder files, probably `database/seeds/DatabaseSeeder.php`:

```
use Bhuvidya\Countries\CountriesSeeder;

/**
 * Run the database seeds.
 *
 * @return void
 */
public function run()
{
    ...
    $this->call(CountriesSeeder::class);
    ...
}

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 90.5% 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 ~130 days

Recently: every ~162 days

Total

6

Last Release

2433d ago

Major Versions

v1.0.4 → v2.0.02019-09-11

PHP version history (2 changes)v1.0.0PHP &gt;=7.0.0

v2.0.0PHP &gt;=7.2.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/8ab1ab6b00f6fd0010e38a3ba0ae92a716be659f72b6febbb6a24bb6d8a599ac?d=identicon)[DariusIII](/maintainers/DariusIII)

---

Top Contributors

[![bhuvidya](https://avatars.githubusercontent.com/u/455707?v=4)](https://github.com/bhuvidya "bhuvidya (19 commits)")[![DariusIII](https://avatars.githubusercontent.com/u/3399658?v=4)](https://github.com/DariusIII "DariusIII (2 commits)")

---

Tags

laravelcountriesiso\_3166\_2iso\_3166\_3

### Embed Badge

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

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

###  Alternatives

[barryvdh/laravel-ide-helper

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

14.9k123.0M683](/packages/barryvdh-laravel-ide-helper)[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)[glhd/special

1929.4k](/packages/glhd-special)[bjuppa/laravel-blog

Add blog functionality to your Laravel project

483.3k1](/packages/bjuppa-laravel-blog)

PHPackages © 2026

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