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

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

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

v12.0(1y ago)3229.9k↓48.4%8[1 PRs](https://github.com/bhuvidya/laravel-countries/pulls)1MITPHPPHP &gt;=7.0.0CI failing

Since Nov 30Pushed 1y ago2 watchersCompare

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

READMEChangelog (3)Dependencies (2)Versions (14)Used By (1)

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

45

—

FairBetter than 93% of packages

Maintenance45

Moderate activity, may be stable

Popularity39

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 87.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 ~221 days

Recently: every ~409 days

Total

13

Last Release

432d ago

Major Versions

v1.0.7 → v8.02020-09-17

v8.0 → v9.02022-02-12

v9.0 → v10.02023-03-11

v10.0 → v11.02024-04-26

v11.0 → v12.02025-03-13

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

countrylaravelpackagelaravelcountriesiso\_3166\_2iso\_3166\_3

### Embed Badge

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

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

###  Alternatives

[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)[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)[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.3k2](/packages/bjuppa-laravel-blog)

PHPackages © 2026

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