Download the PHP package anglemx/sat-cfdi without Composer

On this page you can find all versions of the php package anglemx/sat-cfdi. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?
anglemx/sat-cfdi
Rate from 1 - 5
Rated 5.00 based on 1 reviews

Informations about the package sat-cfdi

SAT CFDI

A pure PHP library to simplify the handling and processing of CFDIs. Creates new CFDIs and parses and validates existing CFDI files.

A CFDI is a "Comprobante Fiscal Digital por Internet" of Mexico's SAT "Servicio de Administración Tributaria" (Tax Administration Service).

Features

Installation

Requires PHP 7.2+ and Composer.

Usage

For more implementation examples, check the Test files.

Dependencies

In order to make this library as robust as possible, we're using many libraries that are included by default on most environments.

Translations

This library is written in english to maintain code consistency. However, some keywords are very specific to this domain.

Español English
Comprobante Invoice
Relacionados Related
Emisor Issuer
Concepto Item
Impuesto Tax
Impuestos Trasladados Transferred Tax
Impuestos Retenidos Retained Tax
Información Aduanera Customs Information
Predial Property Tax

pending..

Resources

This library bundles some resources to simplify the installation process on production servers, and to allow for offline processing. All of these files are published by SAT and are made available completely free through SAT's official website.

Document Date URL
Standard (pdf) 2017-07-28 http://omawww.sat.gob.mx/tramitesyservicios/Paginas/documentos/cfdv33.pdf
Schema (xsd) 2017-07-28 http://www.sat.gob.mx/sitio_internet/cfd/3/cfdv33.xsd
Original Chain Sequence (xslt) 2021-12-01 http://www.sat.gob.mx/sitio_internet/cfd/3/cadenaoriginal_3_3/cadenaoriginal_3_3.xslt
Data Catalog (xsd) 2020-12-29 http://www.sat.gob.mx/sitio_internet/cfd/catalogos/catCFDI.xsd
Data Types & Patterns (xsd) 2017-12-14 http://www.sat.gob.mx/sitio_internet/cfd/tipoDatos/tdCFDI/tdCFDI.xsd
Fiscal Digital Signature, Schema v1.1 (xsd) 2017-04-12 http://www.sat.gob.mx/sitio_internet/cfd/timbrefiscaldigital/TimbreFiscalDigitalv11.xsd
Fiscal Digital Signature, Original Chain Sequence (xslt) 2017-05-29 http://www.sat.gob.mx/sitio_internet/cfd/timbrefiscaldigital/cadenaoriginal_TFD_1_1.xslt
Error Catalog (xls) 2017-04-12 http://omawww.sat.gob.mx/tramitesyservicios/Paginas/documentos/MatrizDeErrores_CFDI_v33.xls

This list is not complete, but any reference to the complementary XSD and XSLT resources are included in the root definition schemas.

Certificates

We've bundled the production root X.509 Certificates (CA) in a convenient PEM file. If you'd prefer, you can download them from the official website and install those files locally: http://omawww.sat.gob.mx/tramitesyservicios/Paginas/certificado_sello_digital.htm

SAT publishes a list of all the certificates for every single registered and active taxpayer. You can consult any specific certificate with SAT's official tool "Recuperación de Certificados".

You can use that system to look up all of SAT's certificates by searching their RFC: SAT970701NN3

References

The official publication regarding CFDI is called "Anexo 20" and we are currently on CFDI version 3.3. View online.

Web Services

This employs some public web services to validate the status of CFDI.

pending..

Validations

See tests/ValidatorTest.php for a sample implementation of the Validation Steps

Testing

To run tests with PHPUnit, simply install the dev dependencies

Create a /test-data/ directory in this library's root path, and place all the XML files inside that you would like to test.

Finally, run the tests:

TO DO

TO FIX

Other notes


All versions of sat-cfdi with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
ext-json Version *
ext-libxml Version *
ext-simplexml Version *
ext-dom Version *
ext-openssl Version *
ext-curl Version *
ext-xsl Version *
ext-intl Version *
anglemx/mexico-rfc Version ^1.0
genkgo/xsl Version ^1.0
fgrosse/phpasn1 Version ^2.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package anglemx/sat-cfdi contains the following files

Loading the files please wait ....