joulgs/php-cnpja 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

joulgs/php-cnpja

最新稳定版本:1.2.4

Composer 安装命令:

composer require joulgs/php-cnpja

包简介

Connection with the CNPJá API in PHP

README 文档

README

Is a communication interface with the cnpjá API to obtain specific data from a company.

A single query is made during the construction of the object and then the data can be queried through the methods of the class, if you want the entire return object use the getResponse method

Installation

Using Composer:

composer require joulgs/php-cnpja

How Using

<?php
use JGS\CNPJa\CNPJaInterface;

$token = 'your-token';
$cnpj  = 'company cnpj to be consulted';

$company = new CNPJaInterface($token,$cnpj);

echo $company->getName();

echo $company->getResponse()->company->name;

Methods

Method Description
getFounded() Get the date of foundation
getName() Get the name of the company
getAlias() Get the alias of the company
getAddress() Get the full address object of the company
getPhoneFormatted() Get the phone number of the company formatted
getPhone() Get the phone number of the company
getCnpj() Get the cnpj of the company
getEmail() Get the email of the company
getState() Get the state of the company
getCity() Get the city of the company
getCityCode() Get the city IBGE code
getStreet() Get the street of the company
getNumber() Get the address number of the company
getDistrict() Get the district of the company
getComplement() Get the address complement of the company
getZipCode() Get the zip code of the company
getCountry() Get the country of the company
getStatus() Get the code of registration status
isActive() Returns true if the company's registration status is active
getCNAE() Get the CNAE code of the company
getMunicipalityCode() Get the municipality code of the company
isHead() Returns true if the company is a head company
getResponse() Returns the entire response object
getMainCnaeCode() Get the main CNAE code of the company
getMainCnaeDescription() Get the main CNAE description of the company
getSideCnaeArray() Get the side CNAE array of the company
getAllCnaeArray() Get the all CNAE array of the company

统计信息

  • 总下载量: 35
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-06-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固