PHP Classes

CFE Printer: Generate printable documents for sales in Brazil

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 57 All time: 10,564 This week: 60Up
Version License PHP version Categories
cfe-printer 1.0.0MIT/X Consortium ...5XML, PHP 5, Printing, E-Commerce
Description 

Author

This package is specific mainly for applications used in Brazil Brazil .

This package can generate printable documents for sales in Brazil.

It can process XML documents obtained from processing sales payments or cancelations transactions of products or services.

The package can generate PDF documents that can display the details of the transactions in PDF format that can be printed.

In Portuguese:

Biblioteca para impressao de CF-e SAT

Innovation Award
PHP Programming Innovation award nominee
February 2023
Number 6
Many companies need to print documents that can be used as proof of purchase by their customers for the products or services.

In many countries, these documents are generated in XML format by the companies and authenticated by the official institutions that regulate commercial activities in those countries.

This package can print authenticated XML documents by generating PDF documents that can be saved or printed.

Manuel Lemos
Picture of Amós Assis
Name: Amós Assis <contact>
Classes: 1 package by
Country: Brazil Brazil
Age: ???
All time rank: 4483364 in Brazil Brazil
Week rank: 131 Up11 in Brazil Brazil Up
Innovation award
Innovation award
Nominee: 1x

Example

<?php

ini_set
("display_errors", 0);

require_once
'../vendor/autoload.php';

use
CfePrinter\Pdf\CfePdfGenerator;
use
CfePrinter\Xml\XmlReader;

$xmlString = file_get_contents('example2.xml');

$xml = new XmlReader($xmlString);
$pdf = new CfePdfGenerator($xml, false);

$pdf->getPDF('test.pdf');


Details

CFE-PRINTER

Biblioteca para impressao de CF-e SAT

Veja mais informações sobre o CF-e SAT no site oficial


  Files folder image Files (14)  
File Role Description
Files folder imageexamples (5 files)
Files folder imagesrc (3 directories)
Files folder imagetests (1 directory)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files (14)  /  examples  
File Role Description
  Accessible without login Plain text file cancelled.php Example Example script
  Accessible without login Plain text file example-canc.xml Data Auxiliary data
  Accessible without login Plain text file example.xml Data Auxiliary data
  Accessible without login Plain text file example2.xml Data Auxiliary data
  Accessible without login Plain text file normal.php Example Example script

  Files folder image Files (14)  /  src  
File Role Description
Files folder imageCommon (1 file)
Files folder imagePdf (1 file)
Files folder imageXml (1 file)

  Files folder image Files (14)  /  src  /  Common  
File Role Description
  Plain text file PaymentTypes.php Class Class source

  Files folder image Files (14)  /  src  /  Pdf  
File Role Description
  Plain text file CfePdfGenerator.php Class Class source

  Files folder image Files (14)  /  src  /  Xml  
File Role Description
  Plain text file XmlReader.php Class Class source

  Files folder image Files (14)  /  tests  
File Role Description
Files folder imageunit (2 files)

  Files folder image Files (14)  /  tests  /  unit  
File Role Description
  Plain text file CfePdfGeneratorTest.php Class Class source
  Plain text file XmlReaderTest.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:57
This week:0
All time:10,564
This week:60Up