PHPackages                             larapkg/iso-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. larapkg/iso-countries

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

larapkg/iso-countries
=====================

A map of ISO countries and their codes

1.1.0(4y ago)0122MITPHPPHP ^8.0CI failing

Since Oct 14Pushed 4y ago2 watchersCompare

[ Source](https://github.com/LaraPKG/iso-countries)[ Packagist](https://packagist.org/packages/larapkg/iso-countries)[ RSS](/packages/larapkg-iso-countries/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (4)Versions (3)Used By (0)

LaraPKG
=======

[](#larapkg)

IsoCountries
------------

[](#isocountries)

A simple PHP mapper for [ISO](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes) country data.

> Country data is available within the `data` folder: in CSV, JSON and ODS format for convenience.

### Usage

[](#usage)

```
// Create an instance directly:
$countries = new \LaraPKG\IsoCountries\Countries();

// Could also be bound to a container:
//$this->app->singleton(Countries::class);
//$this->app->alias(Countries::class, 'countries');
```

The country records are keyed by their two letter ISO-3116-1 Alpha-2 code.

```
$gb = $countries->get('GB');
$us = $countries->get('US');
$fr = $countries->get('FR');
```

---

The countries class forwards calls to the collection instance so any Laravel Collection methods can be used to retrieve a country record.

```
$countries
    ->filter(static fn (Country $country) => $country->alpha3() === 'AUS')
    ->first();

```

---

Countries can be retrieved as an array for processing elsewhere in your application:

```
$countries->toArray();
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

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

Total

2

Last Release

1601d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/187751?v=4)[Paul Dawson](/maintainers/pdawson)[@pdawson](https://github.com/pdawson)

---

Top Contributors

[![pdawson](https://avatars.githubusercontent.com/u/187751?v=4)](https://github.com/pdawson "pdawson (10 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/larapkg-iso-countries/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[illuminate/pagination

The Illuminate Pagination package.

12234.1M1.0k](/packages/illuminate-pagination)[illuminate/pipeline

The Illuminate Pipeline package.

9349.2M278](/packages/illuminate-pipeline)[illuminate/broadcasting

The Illuminate Broadcasting package.

7127.2M208](/packages/illuminate-broadcasting)[illuminate/redis

The Illuminate Redis package.

8314.6M371](/packages/illuminate-redis)

PHPackages © 2026

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