pablosanches / ibpt
Simple SDK to consume IBPT API
1.0
2021-06-03 19:23 UTC
Requires
- php: >=5.6
- phpunit/phpunit: 5.7.*
This package is auto-updated.
Last update: 2024-12-17 07:13:27 UTC
README
Simple SDK to consume IBPT API
Installation
This SDK requires the composer installed.
Install the dependencies and devDependencies and start the server.
"require": { "pablosanches/ibpt": "dev-master" },
Then on you project directory...
composer install composer update
Usage
This SDK is very simple to use.
use PabloSanches\IBPT\IBPTClient; $config = array( 'token' => '--your token here--' ); self::$IBPT = IBPTClient::config($config); $response = static::$IBPT->Produto()->get(array( "cnpj" => "", "codigo" => "", "uf" => "", "descricao" => "", "unidadeMedida" => "", "valor" => 0 )); $response = static::$IBPT->Servico()->get(array( "cnpj" => "", "codigo" => "", "uf" => "", "descricao" => "", "unidadeMedida" => "", "valor" => 0 ));