GithubHelp home page GithubHelp logo

davidblackmx / cfdiutils Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eclipxe13/cfdiutils

0.0 0.0 0.0 1.35 MB

PHP Common utilities for Mexican CFDI 3.2 & 3.3

License: MIT License

PHP 99.98% XSLT 0.02%

cfdiutils's Introduction

eclipxe/CfdiUtils

Source Code Discord Latest Version Software License Build Status AppVeyor Status Source Code Scrutinizer Coverage Status Total Downloads

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).

🇲🇽 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 documented in Read the docs. It is written in spanish language since is the language of the intented 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 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.
  • Validate the "Complemento de recepción de pagos".
  • 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 tree of XSD and XSLT file dependences from SAT.
  • Keep a local copy of certificates to avoid download them each time.
  • Check the SAT WebService to get the status of a CFDI (Estado, EsCancelable y EstatusCancelacion) 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 7.1
    • It could be possible to migrate to phpcfdi/cfiutils under phpCfdi organization

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.

The intented support is to be aligned with 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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.