PHP code example of friskals / countries

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

    

friskals / countries example snippets


    $app->configure('country');
    
 
    $app->register(Friskals\Countries\Providers\CountryServiceProvider::class);
    

$nominal_currency = Friskals\Countries\CountryLoader::country('ID')->format_currency(1000); 

$nominal = Friskals\Countries\CountryLoader::country('ID')->format_nominal(1000);

$is_validated = Friskals\Countries\CountryLoader::country('ID')->validate_phone('+6208120812081');

$phone = Friskals\Countries\CountryLoader::country('ID')->transform_phone('+6208120812081');