PHPackages                             sheub/ban-france-provider - 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. sheub/ban-france-provider

ActiveLibrary

sheub/ban-france-provider
=========================

Geocoder Base Addresse Nationale France adapter

43.1k↓50%[2 issues](https://github.com/sheub/ban-france-provider/issues)PHP

Since Dec 11Pushed 7y ago1 watchersCompare

[ Source](https://github.com/sheub/ban-france-provider)[ Packagist](https://packagist.org/packages/sheub/ban-france-provider)[ RSS](/packages/sheub-ban-france-provider/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

*Base Addresse Nationale* provider for the [geocoder-php](https://github.com/geocoder-php/Geocoder) library
===========================================================================================================

[](#base-addresse-nationale-provider-for-the-geocoder-php-library)

[![Build Status](https://camo.githubusercontent.com/2f8fb91a3a48e0892ac616ed13b910407b4b5b12ab10bb2a68b9527908607a00/68747470733a2f2f7472617669732d63692e6f72672f73686575622f62616e2d6672616e63652d70726f76696465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/sheub/BANFrance-provider)[![Quality Score](https://camo.githubusercontent.com/6bddfc783de0230e1c36dff411be3c5a6fbf40d05162ad48c385ee9dc9e16ad8/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f73686575622f42414e4672616e63652d70726f76696465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/sheub/BANFrance-provider)[![Latest Stable Version](https://camo.githubusercontent.com/9fa97dd471bd84cf5820413bd3868da62267bd8b7bf9e06cf5cd3bbcdc973d98/68747470733a2f2f706f7365722e707567782e6f72672f73686575622f62616e2d6672616e63652d70726f76696465722f762f737461626c65)](https://packagist.org/packages/sheub/ban-france-provider)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

[Geocoder PHP](https://github.com/geocoder-php/Geocoder) is a PHP library which helps you build geo-aware applications by providing a powerful abstraction layer for geocoding and reverse-geocoding. See the [main repo](https://github.com/geocoder-php/Geocoder) for the documentation.

This is the provider for the *Base Addresse Nationale Geocoder*. Its coverage is limited to France. Additional information on the service and the API can be found here:

Install
-------

[](#install)

```
composer require sheub/ban-france-provider
```

Usage
-----

[](#usage)

```
use Geocoder\Query\GeocodeQuery;
use Geocoder\Provider\BANFrance\BANFrance;
use Geocoder\Model\Coordinates;
use Geocoder\Query\GeocodeQuery;
use Geocoder\Query\ReverseQuery;
use Http\Client\HttpClient;

$httpClient = new \Http\Adapter\Guzzle6\Client();
$geocoder = new BANFrance($httpClient);

// Query with unstructured address
$result = $geocoder->geocodeQuery(GeocodeQuery::create('8 Boulevard du Port 80000 Amiens'));

// Query with limit and postcode
$query = GeocodeQuery::create('8 Boulevard du Port');
$query = $query->withLimit(1);
$query = $query->withData('postcode', 80000);

$result = $provider->geocodeQuery($query);

// Reverse geocoding
$provider = new BANFrance($httpClient);
$results = $provider->reverseQuery(ReverseQuery::fromCoordinates(48.8632156, 2.3887722));
```

Contribute
----------

[](#contribute)

Contributions are very welcome! Send a pull request to the [main repository](https://github.com/sheub/BANFrance-provider) or report any issues you find on the [issue tracker](https://github.com/sheub/BANFrance-provider/issues).

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/24b69d56f29636b320dfab97479ab9c4312eb9367c65b923b537f7e8ffc01568?d=identicon)[Sheub](/maintainers/Sheub)

---

Top Contributors

[![sheub](https://avatars.githubusercontent.com/u/5184672?v=4)](https://github.com/sheub "sheub (13 commits)")

### Embed Badge

![Health badge](/badges/sheub-ban-france-provider/health.svg)

```
[![Health](https://phpackages.com/badges/sheub-ban-france-provider/health.svg)](https://phpackages.com/packages/sheub-ban-france-provider)
```

PHPackages © 2026

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