aka-sacci/getcnpj-php
Composer 安装命令:
composer require aka-sacci/getcnpj-php
包简介
Consulta de dados referentes ao CNPJ online
README 文档
README
A simple project that returns the data of a organization with a valid brazilian EIN (CNPJ);
I developed this to study some concepts and functionalities of Composer and PHPUnit, so, a simple unitary test is attached to the project.
To make the requisition of data, a external API was used. As it is free, the API has a limit of 3 queries per minute for each IP. There some another paid plans that increase this limit, but, for this project, subscribing to any of them is unnecessary.
How to use in your project (via Composer)
Install the package:
composer require aka-sacci/getcnpj-php
Require the dependencies of Composer:
require_once "vendor/autoload.php";
Import the namespace to your project:
use \AkaSacci\GetcnpjPhp\Search;
Declare the instance of the class:
$mySearch = new Search();
Search to a CNPJ and get the data!
$data = $mySearch->getDataFromCNPJ($sringCNPJ);
统计信息
- 总下载量: 56
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-07-26