crisvegadev / facturama-php-sdk
Facturama PHP SDK
Fund package maintenance!
crisvegadev
Ko Fi
Requires
- php: ^8.0
- ext-curl: *
- ext-openssl: *
- guzzlehttp/guzzle: ^7.5
- psr/container: ^2.0.0
- vlucas/phpdotenv: ^5.4
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.0
- phpmd/phpmd: ^2.4.3
- phpunit/phpunit: >=5.6|>=7.0|>=8.0
This package is auto-updated.
Last update: 2025-03-08 23:06:08 UTC
README
[NOTE] This is a custom library of Facturama PHP SDK
[NOTE] This library is for CFDI 4.0
How do I install it?
composer require crisvegadev/facturama-php-sdk
Set the environment variables
Create an .env
in your root path and write the following:
FACTURAMA_ENVIRONMENT=sandbox FACTURAMA_SANDBOX_URL=https://apisandbox.facturama.mx/ FACTURAMA_SANDBOX_USERNAME=<your_username> FACTURAMA_SANDBOX_PASSWORD=<your_password> FACTURAMA_PRODUCTION_URL=https://api.facturama.mx/ FACTURAMA_PRODUCTION_USERNAME=<your_username> FACTURAMA_PRODUCTION_PASSWORD=<your_password>
API operations
- Create, get CFDIs; download XMLs and PDFs;
All operations will be reflected on Facturama's web app.