PHP code example of think.studio / laravel-international-info

1. Go to this page and download the library: Download think.studio/laravel-international-info 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/ */

    

think.studio / laravel-international-info example snippets


InternationalInfo::country()->list();
InternationalInfo::country()->list('AI'); // Anguilla

$country = InternationalInfo::country();
$country->findISOCode('GB') // 'GB'
$country->findISOCode('gb') // 'GB'
$country->findISOCode('United Kingdom (UK)') // 'GB'
shell
php artisan vendor:publish --provider="InternationalInfo\ServiceProvider" --tag="config"
# optional
php artisan vendor:publish --provider="InternationalInfo\ServiceProvider" --tag="storage"