PHPackages                             ferdirn/laravel-id-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. [Database &amp; ORM](/categories/database)
4. /
5. ferdirn/laravel-id-countries

ActiveLaravel-package[Database &amp; ORM](/categories/database)

ferdirn/laravel-id-countries
============================

Laravel ID Countries is a package for Laravel to supply all countries data to table countries including country name, iso country code, capital, currency, and calling code.

v2.0(11y ago)5682[1 issues](https://github.com/ferdirn/laravel-id-countries/issues)MITPHPPHP &gt;=5.3.0

Since Nov 10Pushed 11y ago3 watchersCompare

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

READMEChangelogDependenciesVersions (4)Used By (0)

Laravel ID Countries
====================

[](#laravel-id-countries)

[![Total Downloads](https://camo.githubusercontent.com/0b6d3f35b91238a294a5df9b3cad995a590ddb9c3c01277f29e9c0fda8382553/68747470733a2f2f706f7365722e707567782e6f72672f6665726469726e2f6c61726176656c2d69642d636f756e74726965732f646f776e6c6f6164732e737667)](https://packagist.org/packages/ferdirn/laravel-id-countries)[![Latest Stable Version](https://camo.githubusercontent.com/70da6c184942f85fbc91c8823da01488e10d946d3f15b5ca77b6236c9fa65c4d/68747470733a2f2f706f7365722e707567782e6f72672f6665726469726e2f6c61726176656c2d69642d636f756e74726965732f762f737461626c652e737667)](https://packagist.org/packages/ferdirn/laravel-id-countries)[![Latest Unstable Version](https://camo.githubusercontent.com/00d550e9395bd9d2b8bb2859a229d980455309db3db7c95d5a4025433ee773ab/68747470733a2f2f706f7365722e707567782e6f72672f6665726469726e2f6c61726176656c2d69642d636f756e74726965732f762f756e737461626c652e737667)](https://packagist.org/packages/ferdirn/laravel-id-countries)

Laravel ID Countries is a package for Laravel to supply all countries data to table countries including country name, iso country code, capital, currency, and calling code.

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

[](#installation)

Add `ferdirn/laravel-id-countries` to `composer.json`.

```
"ferdirn/laravel-id-countries": "dev-master"

```

or in console type command

```
composer require ferdirn/laravel-id-countries:dev-master

```

Run `composer update` to pull down the latest version of laravel packages.

Edit `app/config/app.php` file and add to `providers`

```
'providers' => array(
    'Ferdirn\Countries\CountriesServiceProvider',
)

```

also add to 'aliases'

```
'aliases' => array(
    'Countries' => 'Ferdirn\Countries\CountriesFacade',
)

```

Model
-----

[](#model)

If you want to edit the configuration then publish the config. This is an optional step and unrecommended to do, it will show the table name and you do not need to alter it if you do not know what you are doing. The default table name is `countries`, if it suits you, leave it. But if you know what you are doing, you can run the following command

```
$ php artisan config:publish ferdirn/laravel-id-countries

```

Then you need to generate the migration file. Run the following command:

```
$ php artisan countries:migration

```

This process will generate `_create_countries_table.php` migration file and a `CountriesSeeder.php` seed file.

Insert the following code in the `seeds/DatabaseSeeder.php`

```
//Seed the countries
$this->call('CountriesSeeder');
$this->command->info('Seeded the countries!');

```

Finally, you can run the artisan migrate command with seed option to include the seed data:

```
$ php artisan migrate --seed

```

Now you have a table 'countries' with all country data inside the table. Congratulation!

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

3

Last Release

4194d ago

Major Versions

v1.1 → v2.02014-11-17

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

laravelcurrencycountriescapitalcitizenship

### Embed Badge

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

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

###  Alternatives

[annexare/countries-list

Continents &amp; countries: ISO 3166-1 alpha-2 code, name, ISO 639-1 languages, capital, currency, native name, phone. JSON, CSV and SQL.

1.3k220.8k1](/packages/annexare-countries-list)[bavix/laravel-wallet

It's easy to work with a virtual wallet.

1.3k1.1M11](/packages/bavix-laravel-wallet)[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)[rtconner/laravel-likeable

Trait for Laravel Eloquent models to allow easy implementation of a 'like' or 'favorite' or 'remember' feature.

394388.0k5](/packages/rtconner-laravel-likeable)[lwwcas/laravel-countries

A comprehensive package for managing country data in Laravel applications, including multilingual support, geographic coordinates, and detailed metadata for seamless integration with Laravel.

12464.0k](/packages/lwwcas-laravel-countries)[io238/laravel-iso-countries

Ready-to-use Laravel models and relations for country (ISO 3166), language (ISO 639-1), and currency (ISO 4217) information with multi-language support.

5462.3k](/packages/io238-laravel-iso-countries)

PHPackages © 2026

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