PHPackages                             irando/country-codes - 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. irando/country-codes

ActiveLibrary

irando/country-codes
====================

The most complete country code list fpackage for laravel

2.3.27(2y ago)20211MITPHPPHP ^7.0 || ^8.0 || ^8.1 || ^8.2

Since Aug 5Pushed 2y ago2 watchersCompare

[ Source](https://github.com/robertnicjoo/country-codes)[ Packagist](https://packagist.org/packages/irando/country-codes)[ Docs](https://github.com/robertnicjoo/country-codes) Fund[ GitHub Sponsors](https://github.com/robertnicjoo)[ RSS](/packages/irando-country-codes/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (3)Used By (0)

Country Codes
=============

[](#country-codes)

This is a Composer plugin that provides an automated version of Country Codes database.

This database is include: `country iso codes`, `country names`, `country names with phone codes`, `phone codes` as well as admin page to manage your list of data.

[![Screenshot](./images/screenshot.png)](./images/screenshot.png)

What you can do?
----------------

[](#what-you-can-do)

- Get users country names
- Get users phone numbers
- Send OTP codes
- Send message on messangers

*Usage of this package are vary, those were just small examples of what you can do.*

Also my main reason to build this package was to send WhatsApp message (specifically OTP codes).

Table Of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Usage](#usage)
- [Customization](#customization)
- [Contributing](#contributing)
- [License](#license)

Requirements
------------

[](#requirements)

SourceVersionComposer^2.0PHP^7.4/^8.0 /^8.2Installation
------------

[](#installation)

The only thing you need to do to make this work is adding this package as a dependency to your project:

```
composer require irando/country-codes
```

Usage
-----

[](#usage)

1. Add following line in your `config/app.php` file

```
'providers' => [
    // ...
    Irando\CountryCodes\CountryCodesServiceProvider::class,
];
```

2. Run either of commands below to publish package files

```
php artisan vendor:publish
```

And select id referred to:

```
Irando\CountryCodes\CountryCodesServiceProvider
```

OR

```
php artisan vendor:publish --tag=country-codes
```

3. Run `php artisan migrate` to add countries table into your database
4. Run `php artisan db:seed --class=CountryCodesTableSeeder` to seed countries data into countries table.

> Note: In case of error after this command run `composer dumpautoload` and try again to seed database

> Now visit `your_url.tld/country-codes` and you are set.

Customization
-------------

[](#customization)

If you need *(probably you do!)* to customize the look, routing, functionality etc. of this package, at stage 2 of installation we deployed `CountryCodes.php` which is your table model, as well as view files at `resources/views/vendor/irando/country-codes` you can edit those files and create your own.

Contributing
------------

[](#contributing)

All feedback / bug reports / pull requests are welcome.

### You can support me for more open source projects by sponsoring this package

[](#you-can-support-me-for-more-open-source-projects-by-sponsoring-this-package)

License
-------

[](#license)

This code is released under the MIT license.

For the full copyright and license information, please view the [`LICENSE`](LICENSE) file distributed with this source code.

> Developed by [Robert Nicjoo](https://github.com/robertnicjoo) at [CV. IRANDO](https://irando.co.id)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

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

Total

2

Last Release

1000d ago

PHP version history (2 changes)2.3.26PHP ^7.0 || ^8.0 || ^8.1

2.3.27PHP ^7.0 || ^8.0 || ^8.1 || ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/35eddfa9d45ee41f46649fd6ef06f8799f74628ead04c23c51a8e5d7b77cd872?d=identicon)[irando](/maintainers/irando)

---

Top Contributors

[![robertnicjoo](https://avatars.githubusercontent.com/u/8672823?v=4)](https://github.com/robertnicjoo "robertnicjoo (31 commits)")

---

Tags

composer-packagelaravellaravel-packagephplaravelisocountrylaravel8laravel9country codesirandocv irandoiso code

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/irando-country-codes/health.svg)

```
[![Health](https://phpackages.com/badges/irando-country-codes/health.svg)](https://phpackages.com/packages/irando-country-codes)
```

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[zanysoft/laravel-zip

laravel-zip is the world's leading zip utility for file compression and backup.

3142.8M15](/packages/zanysoft-laravel-zip)[josiasmontag/laravel-recaptchav3

Recaptcha V3 for Laravel package

2641.6M2](/packages/josiasmontag-laravel-recaptchav3)[laravel/cashier-paddle

Cashier Paddle provides an expressive, fluent interface to Paddle's subscription billing services.

264778.4k3](/packages/laravel-cashier-paddle)[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)[torchlight/torchlight-laravel

A Laravel Client for Torchlight, the syntax highlighting API.

120452.8k11](/packages/torchlight-torchlight-laravel)

PHPackages © 2026

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