1. Go to this page and download the library: Download agallou/regions 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/ */
agallou / regions example snippets
$regions = new \agallou\Regions\Collection();
var_dump($regions->get('11')->getLabel());
//string(10) "Ile-de-France"
$regions = new \agallou\Regions\Collection();
var_dump($regions->getLabel(2, true));
//string(10) "Martinique"