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.1.3(1mo ago)8602.9M↓31.9%2258MITPHPPHP ^8.2

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 4d ago

READMEChangelog (1)Dependencies (8)Versions (28)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/19411a8c92703d0173bff77f2f45daff06f9fa17eb500fdcd963414fadb3dbad/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c61726176656c2d25354531312e3025323025374325323025354531322e302d7265642e737667)](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');
$allCountries = $countries->getList();
$euroCountries = $countries->getByCurrency('EUR');
```

Features
--------

[](#features)

- 🌍 All 249 countries with complete data
- 🏳️ 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

74

—

ExcellentBetter than 100% of packages

Maintenance89

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

Recently: every ~60 days

Total

25

Last Release

55d 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 (51 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)")[![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)")[![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)")[![ComeCaramelos](https://avatars.githubusercontent.com/u/32031130?v=4)](https://github.com/ComeCaramelos "ComeCaramelos (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)")[![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)")[![SumonMSelim](https://avatars.githubusercontent.com/u/1529567?v=4)](https://github.com/SumonMSelim "SumonMSelim (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)")

---

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

3355.3M346](/packages/psalm-plugin-laravel)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8793.2M25](/packages/yajra-laravel-oci8)[api-platform/laravel

API Platform support for Laravel

58171.6k14](/packages/api-platform-laravel)[wearepixel/laravel-cart

A cart implementation for Laravel

1374.8k](/packages/wearepixel-laravel-cart)[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).

3330.6k1](/packages/bhuvidya-laravel-countries)

PHPackages © 2026

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