marcw / cccn
Convert country names to country code in any language
Installs: 203
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/marcw/cccn
Requires (Dev)
- phpunit/phpunit: ^5.1
This package is not auto-updated.
Last update: 2025-10-12 00:04:36 UTC
README
Simply convert country names (from nearly every languages) to the corresponding country code. The country list comes from https://github.com/marcw/country-list.
Usage
// will return 'FR'
MarcW\CCCN\CCCN::getCountryCode('Fàlâŋnsì');
License
MIT