PHPackages                             ayctor/sireneapi - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. ayctor/sireneapi

ActiveLibrary[HTTP &amp; Networking](/categories/http)

ayctor/sireneapi
================

Small PHP client library for Sirene API

1.1.1(5y ago)48202[2 PRs](https://github.com/Ayctor/SireneApi/pulls)MITPHPPHP &gt;=7.4.0

Since Apr 8Pushed 3y ago3 watchersCompare

[ Source](https://github.com/Ayctor/SireneApi)[ Packagist](https://packagist.org/packages/ayctor/sireneapi)[ Docs](https://github.com/Ayctor/SireneApi)[ RSS](/packages/ayctor-sireneapi/feed)WikiDiscussions master Synced 1mo ago

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

SireneAPI
=========

[](#sireneapi)

It is a small php client library to use the [Sirene API](https://entreprise.data.gouv.fr/api_doc_sirene).

See [official documentation](https://entreprise.data.gouv.fr/api_doc_sirene) for availables methods.

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

[](#installation)

```
composer require ayctor/sireneapi

```

Usage
-----

[](#usage)

V1
--

[](#v1)

Doc will come

### V3

[](#v3)

```
use SireneApi\SireneApi;

$api = new SireneApi;

// Get all companies
$companies = $api->companies()->all();
// Get company by SIREN number
$company = $api->companies()->getBySiren('552081317');
// Get companies by other fields
$companies = SirenApi::companies()->getBy('code_postal', 77100);
// Get companies by other fields
$companies = $api->companies()->getBy([
    'code_postal' => 77100,
]);

// Get all estabslishments
$establishments = $api->establishments()->all();
// Get establishments by SIREN number
$establishments = $api->establishments()->getBySiren('552081317');
// Get establishment by SIRET number
$establishment = $api->establishments()->getBySiret('55208131785027');
// Get establishments by other fields
$establishments = $api->establishments()->getBy('code_postal', 77100);
// Get establishments by other fields
$establishments = SirenApi::establishments()->getBy([
    'code_postal' => 77100,
]);
```

Errors
------

[](#errors)

### getBySiret()

[](#getbysiret)

It will throw an exception if you use this function to retrieve companies

### getBy()

[](#getby)

It will throw an exception if you use this function with the first param as a string and no second param.

License
-------

[](#license)

[MIT](https://github.com/Ayctor/SireneApi/blob/master/LICENSE)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

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

Total

2

Last Release

2181d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/26ac06d64cd8e1e4c188e21478665f2a5f4c28a42c750104d03097af14c6fd39?d=identicon)[axeldotdev](/maintainers/axeldotdev)

![](https://www.gravatar.com/avatar/57b6300ff37f7efe9da2e61474dab87a7fc357f5440691dfce61bc7fc92da2c6?d=identicon)[erwanguillon](/maintainers/erwanguillon)

---

Tags

apigouvguzzlephpsireneapifrancesireneSiretetablissements

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ayctor-sireneapi/health.svg)

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

###  Alternatives

[xeroapi/xero-php-oauth2

Xero official PHP SDK for oAuth2 generated with OpenAPI spec 3

1054.3M14](/packages/xeroapi-xero-php-oauth2)[cybercog/youtrack-rest-php

YouTrack REST API PHP Client.

37149.2k3](/packages/cybercog-youtrack-rest-php)[onesignal/onesignal-php-api

A powerful way to send personalized messages at scale and build effective customer engagement strategies. Learn more at onesignal.com

34170.2k2](/packages/onesignal-onesignal-php-api)[ory/hydra-client

Documentation for all of Ory Hydra's APIs.

17435.9k](/packages/ory-hydra-client)[zenditplatform/zendit-php-sdk

PHP client for Zendit API

1204.3k](/packages/zenditplatform-zendit-php-sdk)[whatarmy/fedex-rest

New FedEx Rest API wrapper

2440.5k1](/packages/whatarmy-fedex-rest)

PHPackages © 2026

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