inwebo / country-model
Iso 3166 code's PHP implementation
1.0.0
2026-04-07 18:52 UTC
Requires
- php: ^7.4|^8.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.94
- phpstan/phpstan: ^2.1
This package is auto-updated.
Last update: 2026-04-07 18:54:55 UTC
README
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
- 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
You can install the package via Composer:
composer require inwebo/country-model
License
This project is licensed under the GPL-3.0-or-later License. See the LICENSE file for details.