kanta-inc/inpi-rne-php
最新稳定版本:v0.1.5
Composer 安装命令:
composer require kanta-inc/inpi-rne-php
包简介
PHP library to access the INPI RNE API
README 文档
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
统计信息
- 总下载量: 23
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-12-26