It is a small php client library to use the GéoAPI.
See official documentation for availables methods.
composer require ayctor/geoapifr
use GeoApiFr\GeoApiFr;
// Create instance
$instance = new GeoApiFr;
$regions = $instance->get('regions');
// OR
$versailles = GeoApiFr::getInstance()->get('communes', ['nom' => 'versailles']);
It will return an empty array if the request came up empty.
Return GuzzleHttp\Exception\RequestException
object if error 400.