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

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

axeldotdev/countries
====================

This package give you countries informations.

v1.0.1(4y ago)03MITPHPPHP ^8.0

Since Sep 22Pushed 4y ago1 watchersCompare

[ Source](https://github.com/axeldotdev/countries)[ Packagist](https://packagist.org/packages/axeldotdev/countries)[ Docs](https://github.com/axeldotdev/countries)[ GitHub Sponsors](https://github.com/axeldotdev)[ RSS](/packages/axeldotdev-countries/feed)WikiDiscussions main Synced today

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

This package give you countries informations.
=============================================

[](#this-package-give-you-countries-informations)

[![Latest Version on Packagist](https://camo.githubusercontent.com/1dd763c604fb8d4bf01893f9b0a6db46253784920791eceb7cf6ae0a9b2c0002/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6178656c646f746465762f636f756e74726965732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/axeldotdev/countries)[![GitHub Tests Action Status](https://camo.githubusercontent.com/ae6adb3c111c4ecff4da5e38282cee4841672d79c5cf3dd5ea30218173b7dce2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6178656c646f746465762f636f756e74726965732f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/axeldotdev/countries/actions?query=workflow%3ATests+branch%3Amaster)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/48a6de9fbf779e9acacfca31934342b72b7b0ee783c553ac8a7f072dd921eaa4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6178656c646f746465762f636f756e74726965732f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/axeldotdev/countries/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amaster)[![Total Downloads](https://camo.githubusercontent.com/9a326a3506b1f21d00b364e290b22fc558935fe829b99ed52e58da5c59576239/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6178656c646f746465762f636f756e74726965732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/axeldotdev/countries)

This package give you countries informations.

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

[](#installation)

You can install the package via composer:

```
composer require axeldotdev/countries
```

Usage
-----

[](#usage)

```
$countries = Axeldotdev\Countries\Country::all(translation: LANG::EN);

$european_countries = Axeldotdev\Countries\Country::european(translation: Lang::FR);
```

This package only supports english and french. Feel free to add other lang with a PR.

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Axel Charpentier](https://github.com/axeldotdev)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

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

Total

2

Last Release

1746d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10605697?v=4)[Axel Charpentier](/maintainers/axeldotdev)[@axeldotdev](https://github.com/axeldotdev)

---

Top Contributors

[![axeldotdev](https://avatars.githubusercontent.com/u/10605697?v=4)](https://github.com/axeldotdev "axeldotdev (6 commits)")

---

Tags

countriespackagephpcountriesaxeldotdev

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[rinvex/countries

Rinvex Countries is a simple and lightweight package for retrieving country details with flexibility. A whole bunch of data including name, demonym, capital, iso codes, dialling codes, geo data, currencies, flags, emoji, and other attributes for all 250 countries worldwide at your fingertips.

1.7k8.0M62](/packages/rinvex-countries)[league/iso3166

ISO 3166-1 PHP Library

69938.4M141](/packages/league-iso3166)[pragmarx/countries

PHP Countries and Currencies

1.9k3.4M24](/packages/pragmarx-countries)[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.

8602.9M10](/packages/webpatser-laravel-countries)[dougsisk/laravel-country-state

Country &amp; state helper for Laravel.

1731.9M](/packages/dougsisk-laravel-country-state)[pragmarx/countries-laravel

Countries for Laravel

1491.1M2](/packages/pragmarx-countries-laravel)

PHPackages © 2026

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