PHP code example of devnix / m49-country-codes
1. Go to this page and download the library: Download devnix/m49-country-codes library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
devnix / m49-country-codes example snippets
$m49Finder = new Devnix\M49\Finder();
$m49Finder->m49ToIso31661alpha2(276); // 'DE'
$m49Finder->obsoleteM49ToIso31661alpha2(280); // 'DE'
$m49Finder->obsoleteM49ToIso31661alpha2(278); // 'DE'