PHPackages                             ayctor/geoapifr - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. ayctor/geoapifr

ActiveLibrary[API Development](/categories/api)

ayctor/geoapifr
===============

Small PHP client library for geo api fr

0.0.2(6y ago)01.9k↓100%MITPHPPHP &gt;=7.0.0

Since Apr 24Pushed 2y ago2 watchersCompare

[ Source](https://github.com/Ayctor/GeoApiFr)[ Packagist](https://packagist.org/packages/ayctor/geoapifr)[ Docs](https://github.com/Ayctor/GeoApiFr)[ RSS](/packages/ayctor-geoapifr/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (3)Used By (0)

GeoApiFr
========

[](#geoapifr)

It is a small php client library to use the [GéoAPI](https://api.gouv.fr/api/geoapi.html).

See [official documentation](https://docs.geo.api.gouv.fr/) for availables methods.

### Instalation

[](#instalation)

```
composer require ayctor/geoapifr

```

### Usage

[](#usage)

```
use GeoApiFr\GeoApiFr;

// Create instance

$instance = new GeoApiFr;

$regions = $instance->get('regions');

// OR

$versailles = GeoApiFr::getInstance()->get('communes', ['nom' => 'versailles']);
```

### Errors

[](#errors)

It will return an empty array if the request came up empty.

Return `GuzzleHttp\Exception\RequestException` object if error 400.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~801 days

Total

2

Last Release

2500d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/57b6300ff37f7efe9da2e61474dab87a7fc357f5440691dfce61bc7fc92da2c6?d=identicon)[erwanguillon](/maintainers/erwanguillon)

![](https://www.gravatar.com/avatar/06919f677dbb85a9e8f659cfba4adc773fc0d8e7cad2449794a35237350a409e?d=identicon)[damien-couteillou](/maintainers/damien-couteillou)

---

Top Contributors

[![ErwanGuillon](https://avatars.githubusercontent.com/u/157569?v=4)](https://github.com/ErwanGuillon "ErwanGuillon (2 commits)")[![axeldotdev](https://avatars.githubusercontent.com/u/10605697?v=4)](https://github.com/axeldotdev "axeldotdev (1 commits)")[![khalidayc](https://avatars.githubusercontent.com/u/36501106?v=4)](https://github.com/khalidayc "khalidayc (1 commits)")

---

Tags

apigeofranceregionsayctordepartementscommunes

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ayctor-geoapifr/health.svg)

```
[![Health](https://phpackages.com/badges/ayctor-geoapifr/health.svg)](https://phpackages.com/packages/ayctor-geoapifr)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[get-stream/stream-chat

A PHP client for Stream Chat (https://getstream.io/chat/)

301.8M2](/packages/get-stream-stream-chat)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
