PHP code example of propt8 / country-information
1. Go to this page and download the library: Download propt8/country-information 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/ */
propt8 / country-information example snippets
use propt8\Country\Country;
Country::countryName('Lithuania'); // return CountryInformationEntity
Country::countryCode('LT'); // return CountryInformationEntity
Country::countryAlpha3Code('LTU'); // return CountryInformationEntity
Country::countryCode('LT')->toArray();