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

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

dytechltd/laravel-countries
===========================

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

1.6.1(5y ago)14.3k1MITPHPPHP &gt;=5.3.0

Since Jun 27Pushed 10mo agoCompare

[ Source](https://github.com/syntaxltd/laravel-countries)[ Packagist](https://packagist.org/packages/dytechltd/laravel-countries)[ Docs](https://github.com/webpatser/laravel-countries)[ RSS](/packages/dytechltd-laravel-countries/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (2)Dependencies (1)Versions (28)Used By (0)

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

[](#laravel-countries)

[![Total Downloads](https://camo.githubusercontent.com/b0a6b03eff0fa7cabd350d34b63f2640d79be2a0cf6bf9cee5b61a904c5a40da/68747470733a2f2f706f7365722e707567782e6f72672f7765627061747365722f6c61726176656c2d636f756e74726965732f646f776e6c6f6164732e737667)](https://packagist.org/packages/webpatser/laravel-countries)[![Latest Stable Version](https://camo.githubusercontent.com/621a860a344f7155bdbb0a56839f37db620c0e46a8697d78d051c24c03992026/68747470733a2f2f706f7365722e707567782e6f72672f7765627061747365722f6c61726176656c2d636f756e74726965732f762f737461626c652e737667)](https://packagist.org/packages/webpatser/laravel-countries)[![Latest Unstable Version](https://camo.githubusercontent.com/63637fe278310c127bb934a78cee2ed40db454d5584d755a13162a3d8713797d/68747470733a2f2f706f7365722e707567782e6f72672f7765627061747365722f6c61726176656c2d636f756e74726965732f762f756e737461626c652e737667)](https://packagist.org/packages/webpatser/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)

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

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

```

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

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

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

```

Now add the alias.

```
'aliases' => [
    'Countries' => 'Webpatser\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 `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

39

—

LowBetter than 85% of packages

Maintenance40

Moderate activity, may be stable

Popularity20

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor3

3 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 ~99 days

Recently: every ~8 days

Total

25

Last Release

1949d ago

### Community

Maintainers

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

---

Top Contributors

[![webpatser](https://avatars.githubusercontent.com/u/25720?v=4)](https://github.com/webpatser "webpatser (44 commits)")[![paulkned](https://avatars.githubusercontent.com/u/5045195?v=4)](https://github.com/paulkned "paulkned (13 commits)")[![Dennis-Mwea](https://avatars.githubusercontent.com/u/22258295?v=4)](https://github.com/Dennis-Mwea "Dennis-Mwea (12 commits)")[![mateusfccp](https://avatars.githubusercontent.com/u/4605213?v=4)](https://github.com/mateusfccp "mateusfccp (9 commits)")[![juliangums](https://avatars.githubusercontent.com/u/22907521?v=4)](https://github.com/juliangums "juliangums (8 commits)")[![foo99](https://avatars.githubusercontent.com/u/15682612?v=4)](https://github.com/foo99 "foo99 (4 commits)")[![tsiedsma](https://avatars.githubusercontent.com/u/2625597?v=4)](https://github.com/tsiedsma "tsiedsma (3 commits)")[![msamec](https://avatars.githubusercontent.com/u/4154034?v=4)](https://github.com/msamec "msamec (3 commits)")[![robindirksen1](https://avatars.githubusercontent.com/u/22446895?v=4)](https://github.com/robindirksen1 "robindirksen1 (2 commits)")[![taftse](https://avatars.githubusercontent.com/u/679269?v=4)](https://github.com/taftse "taftse (2 commits)")[![multiwebinc](https://avatars.githubusercontent.com/u/901732?v=4)](https://github.com/multiwebinc "multiwebinc (1 commits)")[![ognjenm](https://avatars.githubusercontent.com/u/609541?v=4)](https://github.com/ognjenm "ognjenm (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)")[![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)")

---

Tags

laravelcountriesiso\_3166\_2iso\_3166\_3

### Embed Badge

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

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