crisvegadev/facturama-php-sdk

Facturama PHP SDK

v1.1.0 2022-09-08 17:18 UTC

This package is auto-updated.

Last update: 2024-04-08 21:06:09 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.