PHPackages                             inwebo/country-model - 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. inwebo/country-model

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

inwebo/country-model
====================

Iso 3166 code's PHP implementation

1.0.0(2mo ago)10GPL-3.0-or-laterPHPPHP ^7.4|^8.0

Since Apr 7Pushed 2mo agoCompare

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

READMEChangelogDependencies (2)Versions (2)Used By (0)

PHP Country Model
=================

[](#php-country-model)

ISO 3166 code's PHP ^8.1 implementation.

This library provides a standard interface for representing countries and their subdivisions according to the ISO 3166-1 standard. It defines methods for common country attributes such as names (short and full), alpha-2, alpha-3 codes, and numeric codes.

Features
--------

[](#features)

- ISO 3166-1 alpha-2, alpha-3, and numeric code support.
- Comprehensive naming (short names, full names, and upper-case names).
- Support for independence status and additional remarks.
- PHP 7.4 and PHP 8.0+ compatibility.

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

[](#installation)

You can install the package via Composer:

```
composer require inwebo/country-model
```

License
-------

[](#license)

This project is licensed under the GPL-3.0-or-later License. See the [LICENSE](LICENSE) file for details.

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance84

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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

81d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/845359?v=4)[Inwebo Veritas](/maintainers/inwebo)[@inwebo](https://github.com/inwebo)

---

Top Contributors

[![inwebo](https://avatars.githubusercontent.com/u/845359?v=4)](https://github.com/inwebo "inwebo (2 commits)")

---

Tags

countrycountry-codesgeolocationiso-3166-1phpgeolocationISO 3166countryISO 3166-1

###  Code Quality

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/inwebo-country-model/health.svg)

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

###  Alternatives

[components/flag-icon-css

A curated collection of all country flags in SVG — plus the CSS for easier integration.

12.2k1.6M23](/packages/components-flag-icon-css)[torann/geoip

Support for multiple Geographical Location services.

2.2k14.9M92](/packages/torann-geoip)[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.7k7.8M58](/packages/rinvex-countries)[league/iso3166

ISO 3166-1 PHP Library

69837.6M135](/packages/league-iso3166)[ip2location/ip2location-php

\[Official Release\] IP2Location PHP API to get location info from IPv4 and IPv6 address.

2154.1M37](/packages/ip2location-ip2location-php)[dougsisk/laravel-country-state

Country &amp; state helper for Laravel.

1681.8M](/packages/dougsisk-laravel-country-state)

PHPackages © 2026

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