Skip to content

Releases: phpcfdi/cfditopdf

Version 0.4.2

02 Sep 19:34
61288f8
Compare
Choose a tag to compare
  • Fix issue on CFDI 4.0 generate only the first block of information for cfdi:CfdiRelacionados.
    Now it creates a block for every occurence.
  • Update license year to 2024.
  • Maintenance changes:
    • Use GitHub Actions version 4.
    • Add PHP 8.3 to test matrix.
    • Run jobs using PHP 8.3.
    • Use matrix.php-version in singular instead of plural.
    • Update php-cs-fixer configuration files deprecated rules.
    • Update direct dependencies.
    • Update development tools.

Version 0.4.1

07 Jun 17:53
7678021
Compare
Choose a tag to compare

This update fixes the continuous integration process and ensures compatibility with PHP 8.2.

  • Introduce CastToStringTrait#strval() to avoid PHPStan issues.
  • Update php-cs-fixer configuration file.
  • Update license year.
  • Fix build badge.
  • On GitHub workflows:
    • Replace GitHub directive ::set-output to $GITHUB_OUTPUT.
    • Require extension gd.
    • Add PHP 8.2 to test matrix.
    • Run jobs using PHP 8.2.
    • Allow run build.yml on demand.
    • Remove obsolete commands on Scrutinizer-CI.
  • Update development tools.

Version 0.4.0

22 Sep 22:07
Compare
Choose a tag to compare
  • Bump PHP Version to 7.3.
  • Add support for CFDI 4.0 and Pagos 2.0.
  • Depends on phpcfdi/cfdi-cleaner.
  • Allow to export TCPDF Font files to a temporary directory when running as Phar.
  • Introduce CFDI catalogs.

Some development changes:

  • Move development tools to Phive.
  • Use build/box to build Phar file.
  • Migrate from Travis CI to GitHub Workflows. Thanks, Travis CI.
  • Remove PhpCfdi\CfdiToPdf\Tests\PdfToText\ShellExec.

Version 0.3.4

21 Jan 06:33
2fda6ba
Compare
Choose a tag to compare
  • Add missing Tipo de cambio DR field to documentos relacionados.
  • Testing: move cadenaoriginal_TFD_1_1.xslt to its correct location.
  • Travis-CI: Remove allow fail on PHP 7.4.

Version 0.3.3

18 Feb 17:53
4cb0a3d
Compare
Choose a tag to compare
  • Isolate the translation from CFDI to HTML into an interface HtmlTranslatorInterface.
  • Implements PlatesHtmlTranslator with the current code to translate CFDI to HTML.
  • Can setup the Html2PdfBuilder by changing the HtmlTranslatorInterface to use other templates or other engine.
  • Update license year.
  • Update Travis-CI & Scrutinizer CI.
  • Update phpstan (version 0.12, do not use phpstan-shim).
  • Update todo list.

Version 0.3.2

14 Nov 22:41
Compare
Choose a tag to compare
  • Add Complemento de pagos to the generated HTML, thanks @blacktrue
  • Change license owner from Carlos C Soto to PHPCFDI
  • Cleanup build and development files

Version 0.3.1

27 Aug 16:38
Compare
Choose a tag to compare
  • Fix bug on CfdiDataBuilder::createTfdSourceString, the tfd:TimbreFiscalDigital(Node) does not contain all the requiered data (it is missing xmlns:xsi attribute from cfdi:Comprobante), as a result we need to provide the value of Version | version attribute.
  • Refactor TestCase to add a helper createXmlResolver to run tests faster using local storage of external XSLT files.

Version 0.3.0

26 Aug 23:20
Compare
Choose a tag to compare
  • Fix bug on CfdiDataBuilder::createTfdSourceString when TimbreFiscalDigital is version 1.0.
  • Extract logic from Html2PdfBuilder::build to:
    • Html2PdfBuilder::buildPdf: convert from CfdiData to html to pdf
    • Html2PdfBuilder::convertHtmlToPdf: contains the logic of Html2Pdf
  • Template generic.php uses alternative syntax for control structures
  • Removed:
    • PhpCfdi\CfdiToPdf\Utils\TemporaryFilename: using CfdiUtils
    • PhpCfdi\CfdiToPdf\Utils\ShellExec: using CfdiUtils
    • PhpCfdi\CfdiToPdf\PdfToText: used only on testing environment
  • Improve test coverage

Version 0.2.3

15 Aug 15:48
Compare
Choose a tag to compare
  • Due GitHub API change, need to upgrade deploy section on Travis and tag a new release to make upload and perform a full release cicle.

Version 0.2.2

15 Aug 15:32
Compare
Choose a tag to compare
  • Development improvements, code does not have significant changes.
  • Remove phive, back to composer for development tools.
  • Move phar construction logic to build-phar script.
  • Update travis & scrutinizer & docs.