aminkhoshzahmat / country-code
A list of all countries with phone, code, and their names
Installs: 30
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 2
Forks: 1
Open Issues: 0
pkg:composer/aminkhoshzahmat/country-code
Requires
- php: >=8.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.14
This package is auto-updated.
Last update: 2025-09-27 00:00:33 UTC
README
A list of all countries with phone, code, and their names
Install
composer require aminkhoshzahmat/country-code
Usage
CountryType::IRAN->getCode(); // "IR" CountryType::IRAN->getNumber(); // "98" CountryType::IRAN->getName(); // "Iran" CountryType::IRAN->getCities(); // ["Tehran", "Tabriz", ...]