kanta-inc / inpi-rne-php
PHP library to access the INPI RNE API
Requires
- php: ^8.1
- guzzlehttp/guzzle: ^7.0
Requires (Dev)
- phpunit/phpunit: ^10.5
This package is auto-updated.
Last update: 2024-12-19 16:30:24 UTC
README
PHP library to access the INPI RNE (Registre National des Entreprises)
Description
Inpi RNE PHP is a PHP library to easily interact with RNE INPI API. It allow users to authenticate, get data about french companies with their identification number (siren number). This version is based on the INPI Documentation located in data folder of this repository
Requirements
PHP 8.1.0 and later.
Installation
Use Composer to install this package : composer require kanta-inc/inpi-rne-php
Usage
Here'is a fast example to get started. If you store your token outside you can directly inject as a parameter of the RNEClient Class. If you don't provide it you have to use the authenticate method providing your username and password. This will store the token inside the RNEClient Class. Then you can get your token back with the getToken method.
use RNEClient\RNEClient;
$client = new RNEClient('token');
$data = $client->searchBySiren('889924320');
// OR
$client = new RNEClient();
$client->authenticate('votre_username', 'votre_password');
$data = $client->searchBySiren('889924320');
Tests
To execute tests of the package : vendor/bin/phpunit
Authors
Kanta Inc