Skip to content

PHP Common utilities for Mexican CFDI 3.2 & 3.3

License

Notifications You must be signed in to change notification settings

feimx/CfdiUtils

 
 

Repository files navigation

eclipxe/CfdiUtils

Source Code Gitter Latest Version Software License Build Status Scrutinizer Coverage Status Total Downloads SensioLabsInsight

PHP Common utilities for Mexican CFDI 3.2 & 3.3

This library provides helper objects to work with Mexican CFDI (Comprobante Fiscal Digital por Internet).

The documentation related to this library and its API is documented inside the GutHub Wiki and is written in spanish language since is the language if the user.

Main features:

  • Create CFDI version 3.3 based on a friendly extendable non-xml objects (nodes)
  • Read CFDI version 3.2 and 3.3
  • Validate CFDI version 3.3 against schemas, cfdi signature (Sello) and custom rules
  • Validate that the Timbre Fiscal Digital signature match with the CFDI 3.3, if not then the document was 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 of Conceptos
    • Retrieve the CFDI version information
  • Keep a local copy of the three of XSD and XSLT file dependences from SAT
  • Check the SAT WebService to get the status of a CDI ('Activo', 'Candelado' & 'No encontrado')

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 the following backward compatibility breaks:
    • Rename \CfdiUtils\CadenaOrigen\CadenaOrigenBuilder to \CfdiUtils\CadenaOrigen\DOMBuilder
    • Rename \CfdiUtils\CadenaOrigen\DefaultLocations to \CfdiUtils\CadenaOrigen\CfdiDefaultLocations
    • Remove \CfdiUtils\CadenaOrigen\CadenaOrigenLocations

PHP Support

This library is compatible with PHP versions 7.0 and above. Please, try to use the full potential of the language like type declarations.

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.

About

PHP Common utilities for Mexican CFDI 3.2 & 3.3

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 77.0%
  • XSLT 23.0%