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,569 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
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

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,569
This week:60Up