2017 © Pedro PelĆ”ez
 

library nfe

NFe para PHP por Leandro

image

leandro/nfe

NFe para PHP por Leandro

  • Wednesday, May 3, 2017
  • by leandrommoliveira
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 19 Versions
  • 0 % Grown

The README.md

NFe para PHP

Build Status StyleCI Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

OperaƧƵes

  • Autorização
  • Cancelamento
  • Carta Correção
  • Inutilização
  • Consulta

Ferramentas

  • Builder para NF-e
  • Danfe
  • Danfe Carta Correção

Estados homologados: - SC, (*2)

Composer

 "phpnfe/nfe": "1.2.*"

Uso - Autorização

Exemplo:, (*3)

<?php

include 'vendor/autoload.php';

$path = __DIR__ . '/tests/utils/xmlTeste.xml';

$cert = new \PhpNFe\Tools\Certificado\Certificado();
$cert->carregarPfx(__DIR__ . 'seu_certificado.pfx', 'suaSenha');

$xml = file_get_contents($path);

$xml = $cert->assinarXML($xml, 'infNFe');

$nfe = new \PhpNFe\NFe\NFe($cert);

$b = $cert->ehValido();

$v = $nfe->validar($xml, '3.10');

$ret = $nfe->autorizar($xml);

$code = $ret->getCode();
$chave = $ret->getChNFe();
$retXml = $ret->getXML();
$message = $ret->getMessage();

echo 'foi';

Exemplos

License

The MIT License, (*4)

The Versions