Skip to content

Commit

Permalink
Merge pull request nfephp-org#72 from robmachado/master
Browse files Browse the repository at this point in the history
Exemplo de Danfce para desenvolvimento
  • Loading branch information
robmachado committed Jun 7, 2016
2 parents 53efcc8 + 75ed037 commit 3fba58d
Show file tree
Hide file tree
Showing 2 changed files with 409 additions and 0 deletions.
17 changes: 17 additions & 0 deletions examples/testDanfe.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php
error_reporting(E_ALL);
ini_set('display_errors', 'On');
include_once('../bootstrap.php');

use Posprint\DanfcePos;
use Posprint\Printers\Daruma;

$printer = new Daruma();

$danfe = new DanfcePos($printer);

$filename = '../local/35160223050021000117650010000000091000000170-nfe.xml';

$danfe->loadNFCe($filename);
$danfe->monta();
$danfe->printDanfe();
Loading

0 comments on commit 3fba58d

Please sign in to comment.