PHPackages                             agallou/regions - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. agallou/regions

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

agallou/regions
===============

Liste des régions Françaises

v0.2.0(10y ago)01.3k1MITPHP

Since Mar 3Pushed 10y ago1 watchersCompare

[ Source](https://github.com/agallou/Regions)[ Packagist](https://packagist.org/packages/agallou/regions)[ RSS](/packages/agallou-regions/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (4)Used By (0)

Tableau des régions françaises
==============================

[](#tableau-des-régions-françaises)

Utilisation
-----------

[](#utilisation)

Récupération d'un libellé :

```
$regions = new \agallou\Regions\Collection();
var_dump($regions->get('11')->getLabel());
//string(10) "Ile-de-France"
```

Récupération d'un libellé si le paramètre n'est pas paddé avec un zéro :

```
$regions = new \agallou\Regions\Collection();
var_dump($regions->getLabel(2, true));
//string(10) "Martinique"
```

Récupération des codes de départements pour la région :

```
$regions = new \agallou\Regions\Collection();
var_dump($regions->get('82')->getCodesDepartements());
//array(8) {
//[0]=>
//  string(2) "01"
//[1]=>
//  string(2) "07"
//[2]=>
//  string(2) "26"
//[3]=>
//  string(2) "38"
//[4]=>
//  string(2) "42"
//[5]=>
//  string(2) "69"
//[6]=>
//  string(2) "73"
//[7]=>
//  string(2) "74"
//}
```

La collection implémente ArrayIterator, il est donc possible de boucler dessus :

```
$departements = new \agallou\Departements\Collection();
foreach ($departements as $code => $label) {
  var_dump($code, $label);
}
//int(42)
//string(6) "Alsace"
//int(72)
//string(9) "Aquitaine"
//int(83)
//string(8) "Auvergne"
//...
//int(82)
//string(12) "Rhône-Alpes"
```

Regions 2016
------------

[](#regions-2016)

Le découpage des nouvelles régions suite à la loi 2015-29 du 16 janvier 2015 relative à la délimitation des régions est aussi disponible.

Ce découpage est disponible via la classe `Collection2016` :

```
$regions = new \agallou\Regions\Collection2016();
var_dump($regions->get('84')->getLabel());
//string(10) "Auvergne-Rhône-Alpes"
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~391 days

Total

3

Last Release

3667d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fa2f1549d1da71962df7d2d4f4abcfddfa864b984198eb4c465c6948579d035a?d=identicon)[agallou](/maintainers/agallou)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/agallou-regions/health.svg)

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

PHPackages © 2026

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