PHP code example of aminkhoshzahmat / country-code

1. Go to this page and download the library: Download aminkhoshzahmat/country-code 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/ */

    

aminkhoshzahmat / country-code example snippets


CountryType::IRAN->getCode();   // "IR"
CountryType::IRAN->getNumber(); // "98"
CountryType::IRAN->getName();   // "Iran"
CountryType::IRAN->getCities(); // ["Tehran", "Tabriz", ...]