eclipxe / cfdiutils
PHP Common utilities for Mexican CFDI 3.2, 3.3 & 4.0
Installs: 76 325
Dependents: 7
Suggesters: 0
Security: 0
Stars: 123
Watchers: 18
Forks: 47
Open Issues: 2
Requires
- php: >=7.3
- ext-dom: *
- ext-iconv: *
- ext-json: *
- ext-libxml: *
- ext-mbstring: *
- ext-openssl: *
- ext-simplexml: *
- ext-xsl: *
- eclipxe/xmlresourceretriever: ^1.3.0
- eclipxe/xmlschemavalidator: ^3.0.2
- symfony/process: ^3.4|^4.2|^5.0|^6.0|^7.0
Requires (Dev)
- ext-bcmath: *
- ext-curl: *
- ext-soap: *
- friendsofphp/php-cs-fixer: ^3.0
- genkgo/xsl: ^1.0.8
- phpstan/phpstan: ^1.5
- phpunit/phpunit: ^9.5
- squizlabs/php_codesniffer: ^3.6
Suggests
- ext-bcmath: Allows calculate totals and taxes on Pagos 2.0
- ext-soap: Allows consume the CFDI Status SAT Web Service
- genkgo/xsl: Allows usage of Genkgo/Xsl transformations
- dev-master
- v3.x-dev
- v2.29.0
- v2.28.2
- v2.28.1
- v2.28.0
- v2.27.1
- v2.27.0
- v2.26.0
- v2.25.0
- v2.24.1
- v2.24.0
- v2.23.5
- v2.23.4
- v2.23.3
- v2.23.2
- v2.23.1
- v2.23.0
- v2.22.0
- v2.21.0
- v2.20.2
- v2.20.1
- v2.20.0
- v2.19.1
- v2.19.0
- v2.18.3
- v2.18.2
- v2.18.1
- v2.17.0
- v2.16.1
- v2.16.0
- v2.15.1
- v2.15.0
- v2.14.2
- v2.14.1
- v2.14.0
- v2.13.1
- v2.13.0
- v2.12.11
- v2.12.10
- v2.12.9
- v2.12.8
- v2.12.7
- v2.12.6
- v2.12.5
- v2.12.4
- v2.12.3
- v2.12.2
- v2.12.1
- v2.12.0
- v2.11.0
- v2.10.4
- v2.10.3
- v2.10.2
- v2.10.1
- v2.10.0
- v2.9.0
- v2.8.1
- v2.8.0
- v2.7.6
- v2.7.4
- v2.7.3
- v2.7.2
- v2.7.1
- v2.7.0
- v2.6.6
- v2.6.5
- v2.6.4
- v2.6.3
- v2.6.2
- v2.6.1
- v2.6.0
- v2.5.1
- v2.5.0
- v2.4.6
- v2.4.5
- v2.4.4
- v2.4.3
- v2.4.2
- v2.4.1
- v2.3.2
- v2.3.1
- v2.3.0
- v2.2.0
- v2.1.0
- v2.0.1
- v2.0.0
- v1.0.3
- v1.0.2
- v1.0.0
This package is auto-updated.
Last update: 2024-10-18 23:35:54 UTC
README
PHP Common utilities for Mexican CFDI 3.2, 3.3 & 4.0.
This library provides helper objects to work with Mexican CFDI (Comprobante Fiscal Digital por Internet).
🇲🇽 Visita la documentación en español de esta librería en Read the docs. También te esperamos en el canal #phpcfdi de discord.
The documentation related to this library and its API is on Read the docs. It is written in spanish language since is the language of the intended audience.
Nota: Este proyecto será migrado a phpcfdi/cfdiutils
, aún no tenemos fecha planeada
No olvides visitar https://www.phpcfdi.com donde contamos con muchas más librerías relacionadas con
CFDI y herramientas del SAT. Y próximamente el lugar donde publicaremos la versión 3.y.z
.
Main features
- Create CFDI version 3.3 & 4.0 based on a friendly extendable non XML objects (
nodes
). - Read CFDI version 3.2, 3.3 & 4.0.
- Validate CFDI version 3.3 & 4.0 against schemas, CFDI signature (
Sello
) and custom rules. - Validate that the Timbre Fiscal Digital signature match with the CFDI 3.3 & CFDI 4.0, if not then the document has been modified after signature.
- Helper objects to deal with:
Cadena de origen
generation.- Extract information from CER files or
Certificado
attribute. - Calculate
Comprobante
sums based on the list ofConceptos
. - Retrieve the CFDI version information.
- Keep a local copy of the tree of XSD and XSLT file dependencies from SAT.
- Keep a local copy of certificates to avoid downloads them each time.
- Check the SAT WebService to get the status of a CFDI (
Estado
,EsCancelable
,EstatusCancelacion
andEFOS
) without WSDL.
Installation
Use composer, so please run
composer require eclipxe/cfdiutils
Major versions
- Version 1.x deprecated was deprecated time ago, that version didn't do much anyway.
- Version 2.x current has a lot of features and helper objects.
- Version 3.x future will be released with backward compatibility breaks.
- See docs/CHANGELOG.md for backward compatibility breaks.
- It may change to PHP 8.0.
- It could be possible to migrate to
phpcfdi/cfdi-utils
under phpCfdi organization.
PHP Support
This library is compatible with PHP 7.3 and above. Please, try to use the language's full potential.
The intended support is to be aligned with the oldest Active support PHP Branch. See https://www.php.net/supported-versions.php for more details.
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 eclipxe/CfdiUtils
library is copyright © Carlos C Soto
and licensed for use under the MIT License (MIT). Please see LICENSE for more information.