Download the PHP package phpcfdi/cfditopdf without Composer
On this page you can find all versions of the php package phpcfdi/cfditopdf. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package cfditopdf
phpcfdi/cfditopdf
Create a generic PDF file from a CFDI 3.3 & 4.0
In some cases you just simply need a PDF file from a Mexican CFDI (Comprobante Fiscal Digital por Internet). This tool help you to create a generic one. You can also use it to build your own and pretty formats.
Installation
Use composer, so please run
Basic usage from CLI
Basic usage as a PHP library
To change the way data is translated from CfdiData
to HTML you could provide a specialized translator to
Html2PdfBuilder
when the object is constructed.
In the following example is using the default HTML translator that uses Plates, only changing the directory where templates are located and the template name. The expected result must be compatible with Html2Pdf.
PHP Support
This library is compatible with at least the oldest PHP Supported Version with active support. Please, try to use PHP full potential.
We adhere to Semantic Versioning. We will not introduce any compatibility backwards change on major versions.
Internal classes (using @internal
annotation) are not part of this agreement
as they must only exist inside this project. Do not use them in your project.
Contributing
Contributions are welcome! Please read CONTRIBUTING for details and don't forget to take a look in the TODO and CHANGELOG files.
Copyright and License
The phpcfdi/cfditopdf
library is copyright © PHPCFDI
and licensed for use under the MIT License (MIT). Please see LICENSE for more information.
All versions of cfditopdf with dependencies
eclipxe/cfdiutils Version ^2.29
league/plates Version ^3.5
phpcfdi/cfdi-cleaner Version ^1.3.3
spipu/html2pdf Version ^5.2.8