Skip to content

Herramienta para crear y actualizar los catálogos de SAT/CFDI en una base de datos SQLite3

License

Notifications You must be signed in to change notification settings

phpcfdi/sat-catalogos-populate

Repository files navigation

phpcfdi/sat-catalogos-populate

Source Code PHP Version Latest Version Software License Build Status Scrutinizer Coverage Status

Herramienta para crear y actualizar los catálogos de SAT/CFDI en una base de datos SQLite3

Use this project to produce the SQLite database for phpcfdi/sat-catalogos but this database can also be used in any other project.

Install and use by docker image

This project provides a Dockerfile to build an image with the project and all its dependences. Use it to execute the commands provided by this package, for more information check the README.Docker.md file.

git clone https://github.com/phpcfdi/sat-catalogos-populate.git
docker build -t sat-catalogos-populate sat-catalogos-populate/
docker run -it --rm sat-catalogos-populate --help

Installation on local system

This project is not a library, and it is not included on Packagist. You cannot install it on your system using composer.

Install it by cloning the project https://github.com/phpcfdi/sat-catalogos-populate.git or download zip file.

git clone https://github.com/phpcfdi/sat-catalogos-populate.git
cd sat-catalogos-populate
composer install

Be aware it also requires external software to work:

apt-get install libreoffice-calc xlsx2csv

Basic usage

mkdir catalogs
php bin/sat-catalogos-update dump-origins > catalogs/origins.xml
php bin/sat-catalogos-update update-origins catalogs/
php bin/sat-catalogos-update update-database catalogs/ catalogs/catalogos.sqlite3

About the catalogs included

Read the file Catálogos SAT for more information about the catalogs included (in spanish).

  • Catálogos de CFDI 3.3.
  • Catálogos de CFDI 4.0.
  • Catálogos de Complemento de Comercio Exterior 1.1.
  • Catálogos de Complemento de Comercio Exterior 2.0.
  • Catálogos de Complemento de Nóminas 1.2.
  • Catálogos de Complemento de Carta Porte 2.0.
  • Catálogos de Complemento de Carta Porte 3.0.
  • Catálogos de Complemento de Carta Porte 3.1.
  • Catálogos de Complemento de Recepción de Pagos 1.0.
  • Catálagos de CFDI De Retenciones e Información de Pagos 2.0

PHP Support

This tool is compatible with last PHP supported version. Please, try to use the full potential of the language.

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 phpcfdi/sat-catalogos-populate project is copyright © PhpCfdi and licensed for use under the MIT License (MIT). Please see LICENSE for more information.

About

Herramienta para crear y actualizar los catálogos de SAT/CFDI en una base de datos SQLite3

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages