PHPackages                             oriatec/laravel-insee-localisation - 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. oriatec/laravel-insee-localisation

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

oriatec/laravel-insee-localisation
==================================

Package to import and use Insee Localisation Data

v1.0.2(4y ago)03proprietaryPHPPHP ^7.4

Since Nov 5Pushed 4y ago1 watchersCompare

[ Source](https://github.com/ORIATEC/insee-localisation)[ Packagist](https://packagist.org/packages/oriatec/laravel-insee-localisation)[ RSS](/packages/oriatec-laravel-insee-localisation/feed)WikiDiscussions master Synced 1mo ago

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

Laravel Insee Localisation
==========================

[](#laravel-insee-localisation)

This package provide an implementation of Insee French Localisation Data with a import command

Installation
------------

[](#installation)

Add the ORIATEC private packagist repositories

```
composer config repositories.private-packagist composer https://repo.packagist.com/oriatec/
```

Install the package

```
composer require oriatec/laravel-insee-localisation
```

Run migrations

```
php artisan migrate
```

Usage
-----

[](#usage)

### Import Insee Data

[](#import-insee-data)

To import Insee Data, run

```
php artisan insee:import
```

### Use the data in your application

[](#use-the-data-in-your-application)

#### Model LocalisationCity

[](#model-localisationcity)

Represent a city with all informations, the department and region.

#### Model LocalisationDepartment

[](#model-localisationdepartment)

Represent a department with all informations and region

#### Model LocalisationRegion

[](#model-localisationregion)

Represent a region

#### Eloquent Model Localisation

[](#eloquent-model-localisation)

Is the Eloquent Model use to request the database.

It provides static method to generate LocalisationCity, LocalisationDepartment or LocalisationRegion

```
use ORIATEC\InseeLocalisation\Models\Localisation;

// Random Localisation
$city = Localisation::randomCity();
$department = Localisation::randomDepartment();
$region = Localisation::randomRegion();

// Localisation Check
Localisation::cityIsInDepartment($zipcode, $department_code);
Localisation::cityIsInRegion($zipcode, $region_code);
Localisation::departmentIsInRegion($department_code, $region_code);

// City
$cities = Localisation::cities();
$cities = Localisation::citiesInDepartment($department_code);
$cities = Localisation::citiesInRegion($region_code);

$city = Localisation::city($zipcode);

// Department
$departments = Localisation::departments();
$departments = Localisation::departmentsInRegion($region_code);
$department = Localisation::department($department_code);
$department = Localisation::departmentForCity($zipcode);

// Region

$regions = Localisation::regions();
$region = Localisation::region();
$region = Localisation::regionForDepartment($department_code);
$region = Localisation::regionForCity($zipcode);
```

Changelog
---------

[](#changelog)

Please see [changelog.md](changelog.md) for what has changed recently.

License
-------

[](#license)

This package belongs to [ORIATEC SARL](https://oriatec.fr). You must have an authorization to use it.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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 ~97 days

Total

4

Last Release

1721d ago

Major Versions

v0.2.0 → v1.0.02020-11-06

### Community

Maintainers

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

---

Top Contributors

[![Thibaud-DT](https://avatars.githubusercontent.com/u/9258596?v=4)](https://github.com/Thibaud-DT "Thibaud-DT (6 commits)")

---

Tags

laravelINSEElocalisation

### Embed Badge

![Health badge](/badges/oriatec-laravel-insee-localisation/health.svg)

```
[![Health](https://phpackages.com/badges/oriatec-laravel-insee-localisation/health.svg)](https://phpackages.com/packages/oriatec-laravel-insee-localisation)
```

###  Alternatives

[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4195.3M84](/packages/livewire-volt)[gehrisandro/tailwind-merge-laravel

TailwindMerge for Laravel merges multiple Tailwind CSS classes by automatically resolving conflicts between them

341682.2k18](/packages/gehrisandro-tailwind-merge-laravel)[nickurt/laravel-akismet

Akismet for Laravel 11.x/12.x/13.x

97139.6k2](/packages/nickurt-laravel-akismet)[whitecube/laravel-timezones

Store UTC dates in the database and work with custom timezones in the application.

106106.2k](/packages/whitecube-laravel-timezones)[sbine/route-viewer

A Laravel Nova tool to view your registered routes.

57215.9k](/packages/sbine-route-viewer)[forxer/laravel-gravatar

A library providing easy gravatar integration in a Laravel project.

4235.6k](/packages/forxer-laravel-gravatar)

PHPackages © 2026

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