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

v2.0.0(8mo ago)8272.8M↓17.9%226[1 issues](https://github.com/webpatser/laravel-countries/issues)[3 PRs](https://github.com/webpatser/laravel-countries/pulls)8MITPHPPHP ^8.2

Since Jun 27Pushed 2mo 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 1mo ago

READMEChangelogDependencies (3)Versions (24)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

71

—

ExcellentBetter than 100% of packages

Maintenance76

Regular maintenance activity

Popularity66

Solid adoption and visibility

Community42

Growing community involvement

Maturity85

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

Recently: every ~788 days

Total

21

Last Release

249d 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 (46 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)")[![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)")[![dmsherazi](https://avatars.githubusercontent.com/u/6149070?v=4)](https://github.com/dmsherazi "dmsherazi (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)")[![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)")[![multiwebinc](https://avatars.githubusercontent.com/u/901732?v=4)](https://github.com/multiwebinc "multiwebinc (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

TestsPHPUnit

### 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

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[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)[glhd/special

1929.4k](/packages/glhd-special)[bjuppa/laravel-blog

Add blog functionality to your Laravel project

483.3k2](/packages/bjuppa-laravel-blog)

PHPackages © 2026

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