ayctor / geoapifr
Small PHP client library for geo api fr
0.0.2
2019-07-05 09:11 UTC
Requires
- php: >=7.0.0
- guzzlehttp/guzzle: ^6.2
Requires (Dev)
- phpunit/phpunit: ^6.1
This package is auto-updated.
Last update: 2026-02-27 21:13:22 UTC
README
It is a small php client library to use the GéoAPI.
See official documentation for availables methods.
Instalation
composer require ayctor/geoapifr
Usage
use GeoApiFr\GeoApiFr; // Create instance $instance = new GeoApiFr; $regions = $instance->get('regions'); // OR $versailles = GeoApiFr::getInstance()->get('communes', ['nom' => 'versailles']);
Errors
It will return an empty array if the request came up empty.
Return GuzzleHttp\Exception\RequestException object if error 400.