PHPackages                             lufiipe/insee-sierene - 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. lufiipe/insee-sierene

ActiveLibrary[API Development](/categories/api)

lufiipe/insee-sierene
=====================

A PHP package for retrieving company information from the INSEE Sirene API

1.0.0(1y ago)15261MITPHPPHP ^7.4|^8.0CI passing

Since Jun 26Pushed 1y agoCompare

[ Source](https://github.com/lufiipe/insee-sierene)[ Packagist](https://packagist.org/packages/lufiipe/insee-sierene)[ RSS](/packages/lufiipe-insee-sierene/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (4)Versions (3)Used By (1)

[![GitHub Release](https://camo.githubusercontent.com/dc3418ec5eba39384618e7c672f386c6a63311404853a19d905d94a9778b75ff/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6c7566696970652f696e7365652d73696572656e65)](https://github.com/lufiipe/insee-sierene/releases)[![GitHub Actions Workflow Status](https://camo.githubusercontent.com/956b7dc73bcdfad9e8df6b0dd6037891ca71c657bab3456dc327e4a397acc87c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c7566696970652f696e7365652d73696572656e652f7068705f72756e5f74657374732e796d6c)](https://github.com/lufiipe/insee-sierene/actions)[![Static Badge](https://camo.githubusercontent.com/153d8048881e5f07e4ba645a5465afec45125f5162acff8b4b593ed45617e26e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d6c6576656c5f392d627269676874677265656e)](https://phpstan.org/)[![GitHub License](https://camo.githubusercontent.com/821f23dadf3d2794258bcefb90257a2255069699e92d95a7f87c597ff049bff5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6c7566696970652f696e7365652d73696572656e653f636f6c6f723d79656c6c6f77)](LICENSE)[![Static Badge](https://camo.githubusercontent.com/c21ceb62f768b3ef2d6f2de9ede93482ce0100b50b2376d3128c405f43dfa7cb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f696e7365655f536972656e652d76332e31312d626c7565)](https://api.insee.fr/catalogue/site/themes/wso2/subthemes/insee/pages/item-info.jag?name=Sirene&version=V3.11&provider=insee)

INSEE Sirene client for PHP
===========================

[](#insee-sirene-client-for-php)

The INSEE Sirene client package is a PHP library that provides a simple and easy-to-use interface for interacting with the INSEE API. It allows you to retrieve legal data, such as company information.

With this package, you can:

- ✅ Advanced search
- ✅ Facets
- ✅ Iterates over the items in the collection
- ✅ API Rate Limiting
- ✅ Event listener

Install
-------

[](#install)

```
composer require lufiipe/insee-sierene

```

Usage
-----

[](#usage)

```
require_once "vendor/autoload.php";
use LuFiipe\InseeSierene\Exception\SireneException;
use LuFiipe\InseeSierene\Parameters\SearchParameters;
use LuFiipe\InseeSierene\Sirene;

$sirene = new Sirene('YOUR-API-KEY');

// Get legal entity details by SIREN number
$sirene->siren('120027016')->getBody();

// Get establishment details by SIRET Number
$sirene->siret('12002701600563')->getBody();

// Searches for legal entities whose name currently contains or previously contained the term "INSEE"
$parameters = (new SearchParameters)
    ->setQuery('periode(denominationUniteLegale:INSEE)');
$collection = $sirene->searchLegalUnits($parameters);
$collection->each(function (array $legalUnit) {
    var_dump($legalUnit);
});

// Retrieves establishments containing the name "WWF"
$parameters = (new SearchParameters)
    ->setQuery('denominationUniteLegale:"WWF"');
$collection = $sirene->searchEstablishments($parameters);
$collection->each(function (array $establishment) {
    var_dump($establishment);
});

// INSEE Sirene Service Status
try {
    $res = $sirene->informations();
} catch (SireneException $e) {
    // ../..
}
```

Documentation
-------------

[](#documentation)

You can find detailed instructions on how to use this package at [the dedicated documentation site](https://lufiipe.github.io/insee-sirene-docs/).

Tests
-----

[](#tests)

Copy the file `phpunit.xml.dist` to `phpunit.xml` and update the value of the `INSEE_API_KEY` variable with your api key.

Then, run:

```
composer test
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance49

Moderate activity, may be stable

Popularity18

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity43

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

374d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7064120?v=4)[Luis-Filipe Antunes](/maintainers/lufiipe)[@lufiipe](https://github.com/lufiipe)

---

Top Contributors

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

---

Tags

phpSirensireneINSEESiret

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/lufiipe-insee-sierene/health.svg)

```
[![Health](https://phpackages.com/badges/lufiipe-insee-sierene/health.svg)](https://phpackages.com/packages/lufiipe-insee-sierene)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[resend/resend-php

Resend PHP library.

617.2M43](/packages/resend-resend-php)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

563.6M13](/packages/checkout-checkout-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)[simondevelop/sirene

Librairie facilitant l'utilisation de l'API sirene de l'insée

1028.0k1](/packages/simondevelop-sirene)

PHPackages © 2026

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