PHP code example of julien-c / iso3166

1. Go to this page and download the library: Download julien-c/iso3166 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/ */

    

julien-c / iso3166 example snippets


echo Iso3166\Codes::country('FR');
// 'France'

echo Iso3166\Codes::phoneCode('FR');
// '33'

echo Iso3166\Codes::continent('EU');
// 'Europa'

echo Iso3166\Codes::countrySelector('class', 'name', 'FR');