ayctor/geoapifr

Small PHP client library for geo api fr

Installs: 1 862

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

pkg:composer/ayctor/geoapifr

0.0.2 2019-07-05 09:11 UTC

This package is auto-updated.

Last update: 2025-09-27 20:24:19 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.