PHPackages                             propt8/country-information - 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. propt8/country-information

ActiveLibrary

propt8/country-information
==========================

PHP library for country information

0.1(6y ago)020MITPHPPHP &gt;=7.1

Since Sep 21Pushed 6y ago1 watchersCompare

[ Source](https://github.com/propt8/country-information)[ Packagist](https://packagist.org/packages/propt8/country-information)[ RSS](/packages/propt8-country-information/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Country Information

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

[](#installation)

Package is available on [Packagist](https://packagist.org/packages/propt8/country-information), you can install it using [Composer](http://getcomposer.org).

```
composer require propt8/country-information
```

### Dependencies

[](#dependencies)

- PHP 7.1+

Basic usage
-----------

[](#basic-usage)

```
use propt8\Country\Country;

Country::countryName('Lithuania'); // return CountryInformationEntity

Country::countryCode('LT'); // return CountryInformationEntity

Country::countryAlpha3Code('LTU'); // return CountryInformationEntity

Country::countryCode('LT')->toArray();
```

```
Data sample:
{
  "country_name": "Lithuania",
  "country_code": "LT",
  "country_alpha3_code": "LTU",
  "country_numeric_code": 440,
  "capital": "Vilnius",
  "country_demonym": "Lithuanians",
  "total_area": 65300,
  "population": 2876475,
  "idd_code": "370",
  "currency_code": "LTL",
  "currency_name": "Lithuanian Litas",
  "currency_symbol": "Lt",
  "lang_code": "LT",
  "lang_name": "Lithuanian",
  "cctld": "lt"
}

```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

Unknown

Total

1

Last Release

2425d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/15d340a0bbb63bcd6dad564ebb97fb298fe4ae5cf571ff5c63f353bb291f7eb0?d=identicon)[propt8](/maintainers/propt8)

---

Top Contributors

[![saurem](https://avatars.githubusercontent.com/u/38749675?v=4)](https://github.com/saurem "saurem (1 commits)")

---

Tags

phpcountrycapital

### Embed Badge

![Health badge](/badges/propt8-country-information/health.svg)

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

###  Alternatives

[annexare/countries-list

Continents &amp; countries: ISO 3166-1 alpha-2 code, name, ISO 639-1 languages, capital, currency, native name, phone. JSON, CSV and SQL.

1.3k220.8k1](/packages/annexare-countries-list)[codezero/laravel-localized-routes

A convenient way to set up, manage and use localized routes in a Laravel app.

543638.1k4](/packages/codezero-laravel-localized-routes)[codezero/browser-locale

Get the most preferred locales from your visitor's browser.

161.4M13](/packages/codezero-browser-locale)[opgginc/codezero-laravel-localized-routes

A convenient way to set up, manage and use localized routes in a Laravel app.

2770.1k1](/packages/opgginc-codezero-laravel-localized-routes)[tomatophp/filament-locations

Database Seeds for Countries / Cities / Areas / Languages / Currancy with ready to use resources for FilamentPHP

2320.8k6](/packages/tomatophp-filament-locations)[sun/country

Sun Country is the package that helps you to get the country name &amp; dialing code by the country ISO 3166-1 Alpha-2 code.

1016.5k](/packages/sun-country)

PHPackages © 2026

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