PHP Classes

CFE Printer: Generate printable documents for sales in Brazil

Recommend this page to a friend!
  Info   View files Example   View files View files (14)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog (1)    
Last Updated Ratings Unique User Downloads Download Rankings
2023-02-10 (10 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 51 All time: 10,560 This week: 196Up
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: 4476364 in Brazil Brazil
Week rank: 658 Up44 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  
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  /  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  /  src  
File Role Description
Files folder imageCommon (1 file)
Files folder imagePdf (1 file)
Files folder imageXml (1 file)

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

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

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

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

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

 Version Control Unique User Downloads Download Rankings  
 100%
Total:51
This week:0
All time:10,560
This week:196Up