- 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.
- Fix configuration file
.php-cs-fixer.dist.php
. - Update development tools.
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.
- Replace GitHub directive
- Update development tools.
- 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
.
- 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.
- Isolate the translation from CFDI to HTML into an interface
HtmlTranslatorInterface
. - Implements
PlatesHtmlTranslator
with the current code to translate CFDI to HTML. - Can set up the
Html2PdfBuilder
by changing theHtmlTranslatorInterface
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.
- Add Complemento de pagos to the generated HTML, thanks @blacktrue
- Change license owner from Carlos C Soto to PHPCFDI
- Cleanup build and development files
- Fix bug on
CfdiDataBuilder::createTfdSourceString
, thetfd:TimbreFiscalDigital(Node)
does not contain all the requiered data (it is missingxmlns:xsi
attribute fromcfdi:Comprobante
), as a result we need to provide the value ofVersion | version
attribute. - Refactor
TestCase
to add a helpercreateXmlResolver
to run tests faster using local storage of external XSLT files.
- 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 pdfHtml2PdfBuilder::convertHtmlToPdf
: contains the logic of Html2Pdf
- Template
generic.php
uses alternative syntax for control structures - Removed:
PhpCfdi\CfdiToPdf\Utils\TemporaryFilename
: usingCfdiUtils
PhpCfdi\CfdiToPdf\Utils\ShellExec
: usingCfdiUtils
PhpCfdi\CfdiToPdf\PdfToText
: used only on testing environment
- Improve test coverage
- Because of GitHub API change, need to upgrade deploy section on Travis and tag a new release to make upload and perform a full release cicle.
- 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.
- Add to travis on deploy section
skip_cleanup: tue
.
- Depends on
phive
https://phar.io/ to handle development dependences:phpcs
,phpcbf
,phpstan
&phar-builder
- Add composer custom commands:
build:check-style
: Runphp-cs-fixer
andphpcs
to check code style violationsbuild:fix-style
: Runphp-cs-fixer
andphpcs
to fix code style violationsbuild:build
: Fix code style violations, run quality assurance and run testbuild:qa
: Runphplint
andphpstan
build:test
: Runphpunit
build:coverage
: Runphpunit
with code coverage and store the html results inbuild/coverage/html/
,build:phar
: Build the phar file intobuild/cfditopdf.phar
usingmacfja/phar-builder
- Build phar inside build and push it into release
- Improve messages from CLI utilily
bin/cfditopdf
- Fix dependence on
eclipxe/cfdiutils
to explicit version instead ofmaster-dev
- Initial release, there are still many task to run to consider stable, please notice that the main dependency to CfdiUtils will change since that library will be moved to PhpCfdi\CfdiUtils