PHPackages                             agallou/departements - 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. agallou/departements

ActiveLibrary

agallou/departements
====================

Liste des départements Français

v0.1.0(12y ago)12.2k—0%MITPHP

Since Feb 1Pushed 12y ago1 watchersCompare

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

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

Tableau des départements français
=================================

[](#tableau-des-départements-français)

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

[](#utilisation)

Récupération d'un libellé :

```
$departements = new \agallou\Departements\Collection();
var_dump($departements->getLabel('29'));
//string(10) "Finistère"
```

Récupération tableau complet :

```
$departements = new \agallou\Departements\Collection();
var_dump($departements->getAll());
```

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

```
$departements = new \agallou\Departements\Collection();
var_dump($departements->getLabel(1, true));
//string(3) "Ain"
```

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);
}
//string(2) "01"
//string(3) "Ain"
//string(2) "02"
//string(5) "Aisne"
//...
//string(7) "Mayotte"
```

Il est aussi possibler d'accéder aux libellés comme ceci :

```
$departements = new \agallou\Departements\Collection();
var_dump($departements['69']);
//string(6) "Rhône"

```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Unknown

Total

1

Last Release

4489d 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-departements/health.svg)

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

PHPackages © 2026

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