Country Codes
Installation
Package is available on Packagist, you can install it using Composer.
composer require saurem/country-codes
Dependencies
- PHP 7.1+
Basic usage
use saurem\CountryCodes\CountryCodes;
CountryCodes::searchByA2('LT'); // return CountryEntity
CountryCodes::searchByA3('LTU'); // return CountryEntity
CountryCodes::searchByNumber('440'); // return CountryEntity
CountryCodes::searchByNumber('Lithuania'); // return CountryEntity