PHPackages                             tariq86/country-list - 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. [Localization &amp; i18n](/categories/localization)
4. /
5. tariq86/country-list

ActiveLibrary[Localization &amp; i18n](/categories/localization)

tariq86/country-list
====================

List of all countries with names and ISO 3166-1 codes in all languages and data formats for Laravel

3.1.1(1y ago)715.2k3[1 PRs](https://github.com/tariq86/country-list/pulls)MITPHPPHP ^7.1CI failing

Since Jul 29Pushed 1y ago2 watchersCompare

[ Source](https://github.com/tariq86/country-list)[ Packagist](https://packagist.org/packages/tariq86/country-list)[ RSS](/packages/tariq86-country-list/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (10)Dependencies (4)Versions (13)Used By (0)

Country List
============

[](#country-list)

[![Build Status](https://camo.githubusercontent.com/bf2c681330d51f9b807a13621357bdd9a1e7fd8fc24f7392745f0eb491504457/68747470733a2f2f7472617669732d63692e6f72672f746172697138362f636f756e7472792d6c6973742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/tariq86/country-list)[![codecov](https://camo.githubusercontent.com/b4241bd2d7d639c3f6c8bb2e8a12c0a69f5d5f9c8d0fdd4dfdc271b67c59c974/68747470733a2f2f636f6465636f762e696f2f67682f746172697138362f636f756e7472792d6c6973742f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/tariq86/country-list)

Country List is a package for Laravel 5+, which lists all countries with names and ISO 3166-1 codes in all languages and data formats.

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

[](#installation)

Require package via Composer: `composer require tariq86/country-list`

As of version 2.0.0 of this package, Laravel 5.8 is the minimum required version, so you do not need to perform any further actions. If you are using an older version of Laravel, you will also need to use an older version of this package (i.e. 1.3.1).

Usage
-----

[](#usage)

- Locale (en, en\_US, fr, fr\_CA...)
    - If no locale is given (or if it is set to null), then it will default to 'en'
- Format (csv, flags.html, html, json, mysql.sql, php, postgresql.sql, sqlite.sql, sqlserver.sql, txt, xml, yaml)

Get all countries

```
Route::get('/', function()
{
    return Countries::getList('en', 'json');
});
```

Get one country

```
Route::get('/', function()
{
    return Countries::getOne('RU', 'en');
});
```

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity65

Established project with proven stability

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

Recently: every ~609 days

Total

11

Last Release

618d ago

Major Versions

v1.3.1 → 2.0.02020-05-12

2.0.0 → 3.0.02020-09-29

PHP version history (2 changes)v1.0.0PHP &gt;=5.4.0

2.0.0PHP ^7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/8c60426769460b0489564585acba9d6d4b940ddaa7e363b73948d8b8665270ab?d=identicon)[tariq86](/maintainers/tariq86)

---

Top Contributors

[![thujohn](https://avatars.githubusercontent.com/u/580699?v=4)](https://github.com/thujohn "thujohn (16 commits)")[![tariq86](https://avatars.githubusercontent.com/u/646561?v=4)](https://github.com/tariq86 "tariq86 (5 commits)")[![targit86](https://avatars.githubusercontent.com/u/646561?v=4)](https://github.com/targit86 "targit86 (3 commits)")[![TullariS](https://avatars.githubusercontent.com/u/7660175?v=4)](https://github.com/TullariS "TullariS (2 commits)")[![mstralka](https://avatars.githubusercontent.com/u/439680?v=4)](https://github.com/mstralka "mstralka (2 commits)")[![simonschaufi](https://avatars.githubusercontent.com/u/941794?v=4)](https://github.com/simonschaufi "simonschaufi (2 commits)")[![nstcactus](https://avatars.githubusercontent.com/u/353843?v=4)](https://github.com/nstcactus "nstcactus (1 commits)")[![Tlapi](https://avatars.githubusercontent.com/u/2815391?v=4)](https://github.com/Tlapi "Tlapi (1 commits)")[![tomo54321](https://avatars.githubusercontent.com/u/20615869?v=4)](https://github.com/tomo54321 "tomo54321 (1 commits)")[![Monarobase](https://avatars.githubusercontent.com/u/1773034?v=4)](https://github.com/Monarobase "Monarobase (1 commits)")

---

Tags

countriescountrycountry-datai18niso-3166-1iso3166laravellocalizationphplaravelinternationalizationi18ncountriescountry

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tariq86-country-list/health.svg)

```
[![Health](https://phpackages.com/badges/tariq86-country-list/health.svg)](https://phpackages.com/packages/tariq86-country-list)
```

###  Alternatives

[erag/laravel-lang-sync-inertia

A powerful Laravel package for syncing and managing language translations across backend and Inertia.js (Vue/React/Svelte) frontends, offering effortless localization, auto-sync features, and smooth multi-language support for modern Laravel applications.

5031.3k](/packages/erag-laravel-lang-sync-inertia)

PHPackages © 2026

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