aminkhoshzahmat / country-code
A list of all countries with phone, code, and their names
v1.1.0
2023-02-26 12:59 UTC
Requires
- php: >=8.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.14
This package is auto-updated.
Last update: 2025-03-26 23:01:02 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", ...]