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

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

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, 12.x, and 13.x.

v2.2.0(1mo ago)8632.9M↓30.2%2268MITPHPPHP ^8.2CI passing

Since Jun 27Pushed 1mo ago23 watchersCompare

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

READMEChangelog (1)Dependencies (13)Versions (29)Used By (8)

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

[](#laravel-countries)

[![Total Downloads](https://camo.githubusercontent.com/aafae25d32aa51c08d5c718b4b4acc20c5e5a1d794ddc657eb86ed7373e710d2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7765627061747365722f6c61726176656c2d636f756e74726965732e737667)](https://packagist.org/packages/webpatser/laravel-countries)[![PHP Version](https://camo.githubusercontent.com/962aced9b09d89716dbebf186ff899754a096ff1068b6b7988675c2d9fab9331/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253545382e322d626c75652e737667)](https://packagist.org/packages/webpatser/laravel-countries)[![Laravel Version](https://camo.githubusercontent.com/2ae0508f960ed59e960abfa271767571c2586ce2aef3a92cc4f95bb3f4732b6f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c61726176656c2d25354531312e3025323025374325323025354531322e3025323025374325323025354531332e302d7265642e737667)](https://packagist.org/packages/webpatser/laravel-countries)[![License](https://camo.githubusercontent.com/b9fb6a3fa0924991ebb308b725bd86fad4d3a05501c16c3ee2f6b3726951ee30/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7765627061747365722f6c61726176656c2d636f756e74726965732e737667)](https://packagist.org/packages/webpatser/laravel-countries)

A comprehensive Laravel package for handling countries data with all 249 countries, flags, currencies, regions, and more.

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

[](#installation)

Install via Composer:

```
composer require webpatser/laravel-countries
```

Run the installation command to set up the database:

```
php artisan countries:install
```

Quick Usage
-----------

[](#quick-usage)

```
use Webpatser\Countries\Countries;

$countries = new Countries();
$usa = $countries->getOne('US');
// $usa['name']      => 'United States'
// $usa['full_name'] => 'United States of America'
$allCountries = $countries->getList();
$euroCountries = $countries->getByCurrency('EUR');
```

Features
--------

[](#features)

- 🌍 All 249 countries with complete data
- 🏷️ Common names (`name`) and official names (`full_name`)
- 🏳️ Flag emojis for every country
- 💰 Currency information and filtering
- 🌏 Regional grouping and filtering
- 🔍 Search and query capabilities
- 📋 Laravel validation rules
- 🎨 Collection and String macros
- 🗄️ Eloquent model support

Documentation
-------------

[](#documentation)

For complete documentation, examples, and API reference, visit:

****

License
-------

[](#license)

MIT License

###  Health Score

75

—

ExcellentBetter than 100% of packages

Maintenance93

Actively maintained with recent releases

Popularity66

Solid adoption and visibility

Community43

Growing community involvement

Maturity86

Battle-tested with a long release history

 Bus Factor2

2 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 ~176 days

Recently: every ~25 days

Total

26

Last Release

36d ago

Major Versions

1.5.4 → v2.0.02025-09-12

PHP version history (2 changes)1.1PHP &gt;=5.3.0

v2.0.0PHP ^8.2

### Community

Maintainers

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

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

---

Top Contributors

[![webpatser](https://avatars.githubusercontent.com/u/25720?v=4)](https://github.com/webpatser "webpatser (54 commits)")[![paulkned](https://avatars.githubusercontent.com/u/5045195?v=4)](https://github.com/paulkned "paulkned (13 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 (7 commits)")[![foo99](https://avatars.githubusercontent.com/u/15682612?v=4)](https://github.com/foo99 "foo99 (4 commits)")[![msamec](https://avatars.githubusercontent.com/u/4154034?v=4)](https://github.com/msamec "msamec (3 commits)")[![tsiedsma](https://avatars.githubusercontent.com/u/2625597?v=4)](https://github.com/tsiedsma "tsiedsma (3 commits)")[![taftse](https://avatars.githubusercontent.com/u/679269?v=4)](https://github.com/taftse "taftse (2 commits)")[![robindirksen1](https://avatars.githubusercontent.com/u/22446895?v=4)](https://github.com/robindirksen1 "robindirksen1 (2 commits)")[![kitbs](https://avatars.githubusercontent.com/u/4569320?v=4)](https://github.com/kitbs "kitbs (1 commits)")[![laravel-shift](https://avatars.githubusercontent.com/u/15991828?v=4)](https://github.com/laravel-shift "laravel-shift (1 commits)")[![lucidlemon](https://avatars.githubusercontent.com/u/2458762?v=4)](https://github.com/lucidlemon "lucidlemon (1 commits)")[![MannikJ](https://avatars.githubusercontent.com/u/1841856?v=4)](https://github.com/MannikJ "MannikJ (1 commits)")[![ferdirn](https://avatars.githubusercontent.com/u/4104384?v=4)](https://github.com/ferdirn "ferdirn (1 commits)")[![MrYamous](https://avatars.githubusercontent.com/u/32437818?v=4)](https://github.com/MrYamous "MrYamous (1 commits)")[![ComeCaramelos](https://avatars.githubusercontent.com/u/32031130?v=4)](https://github.com/ComeCaramelos "ComeCaramelos (1 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)")

---

Tags

laravelcurrencycountriesiso\_3166\_2iso\_3166\_3capitals

###  Code Quality

TestsPest

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.4M354](/packages/psalm-plugin-laravel)[api-platform/laravel

API Platform support for Laravel

58190.1k21](/packages/api-platform-laravel)[forjedio/inertia-table

Backend-driven dynamic tables for Laravel + Inertia.js

272.0k](/packages/forjedio-inertia-table)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

265.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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