1. Go to this page and download the library: Download dazza-dev/laravel-dgt-cr library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
// Usar el valor en inglés de la tabla
$client->setDocumentType('invoice');
// Datos del documento
$client->setDocumentData($documentData);
// Enviar el documento
$document = $client->sendDocument();
use DazzaDev\LaravelDgtCr\Facades\LaravelDgtCr;
// Obtener los listados disponibles
$listings = LaravelDgtCr::getListings();
// Consultar los datos de un listado por tipo
$listingByType = LaravelDgtCr::getListing('tipos-comprobante');