ayctor / geoapifr
Small PHP client library for geo api fr
Installs: 1 852
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- php: >=7.0.0
- guzzlehttp/guzzle: ^6.2
Requires (Dev)
- phpunit/phpunit: ^6.1
This package is auto-updated.
Last update: 2024-12-27 18:31:05 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.