Download the PHP package eramo-software/fatura-simples-php without Composer

On this page you can find all versions of the php package eramo-software/fatura-simples-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package fatura-simples-php

API da Fatura Simples em PHP

Build Status

Registre-se para começar a usar em https://www.faturasimples.com.br

Requerimentos

PHP 5.6+

Instalação com Composer

Depois de instalado o Composer execute:

composer require eramo-software/fatura-simples-php
composer install

Utilize o Composer Autoloader:

require_once('vendor/autoload.php');

Ou carregue manualmente:

require_once('/path/to/vendor/eramo-software/fatura-simples-php/lib/FaturaSimples.php');

Instalação Manual

Obtenha a última versão disponível com:

git clone https://github.com/eramo-software/fatura-simples-php

Para usar essa versão, adicione a seguinte linha na sua aplicação:

require_once("/path/to/fatura-simples-php/lib/FaturaSimples.php");

Iniciando o uso

Um caso de uso extremamente simples:

FaturaSimples::configure("https://suaempresa.faturasimples.com.br", "SUA_CHAVE_API");
$dados = array(
    'data' => '2015-02-11',
    'cliente' => 'NOME DO CLIENTE',
    'servico' => 'Consultoria em TI',
    'valor_venda' => 100.22,
    'emissao_nfse' => FaturaSimples_Venda::EMISSAO_NFSE_NAO_EMITIR_NFSE,
    'meio_pagamento' => 'Espécie'
);
$venda = FaturaSimples_Venda::criar( $dados );
echo $venda;

Para registrar uma venda com emissão de NFS-e:

FaturaSimples::configure("https://suaempresa.faturasimples.com.br", "SUA_CHAVE_API");
$dados = array(
    "data" => "2015-02-11",
    "cliente" => "ERAMO SOFTWARE",
    "cliente_cnpj" => "17737572000150",
    "servico" => "Consultoria em TI",
    "discriminacao" => "10 horas de serviço de consultoria",
    "valor_venda" => 2500,
    "emissao_nfse" => FaturaSimples_Venda::EMISSAO_NFSE_EMITIR_AGORA,
    "meio_pagamento" => "Depósito",
    "nfse_municipio_emissao" => 2611606,
    "nfse_item_servico" => 103,
    "nfse_cnae" => 6311900,
    "nfse_inscricao_municipal" => 123456,
    "nfse_optante_simples_nacional" => FaturaSimples_Venda::SIM,
    "nfse_incentivador_cultural" => FaturaSimples_Venda::NAO
);
$venda = FaturaSimples_Venda::criar( $dados );
echo $venda;

Documentação

Acesse https://docs.faturasimples.com.br/api/ para a documentação completa da nossa API

Testes

Para executar os testes você precisa instalar o PHPUnit, usando composer execute:

composer update --dev

Para executar os testes:

php ./vendor/bin/phpunit test/FaturaSimples/

All versions of fatura-simples-php with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6
ext-curl Version *
ext-json Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package eramo-software/fatura-simples-php contains the following files

Loading the files please wait ....