1. Go to this page and download the library: Download jonathan8312/siigo-laravel 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/ */
jonathan8312 / siigo-laravel example snippets
use Jonathan8312\Siigo\Siigo;
use Jonathan8312\Siigo\DataTransferObjects\Invoices\CustomerRef;
use Jonathan8312\Siigo\DataTransferObjects\Invoices\DocumentRef;
use Jonathan8312\Siigo\DataTransferObjects\Invoices\InvoiceData;
use Jonathan8312\Siigo\DataTransferObjects\Invoices\InvoiceItem;
use Jonathan8312\Siigo\DataTransferObjects\Invoices\InvoicePayment;
use Jonathan8312\Siigo\DataTransferObjects\Invoices\ItemTaxRef;
$siigo = app(Siigo::class);
$invoice = $siigo->invoices()->create(new InvoiceData(
document: new DocumentRef(22), // id from $siigo->catalogs()->documentTypes('FV')
date: '2026-01-15',
customer: new CustomerRef(identification: '13832081'), // must already exist — see docs/customers.md
seller: 629, // id from $siigo->catalogs()->users()
items: [new InvoiceItem(
code: 'Item-1', // must already exist — see docs/products.md
quantity: 2,
price: 50,
taxes: [new ItemTaxRef(id: 13156)], // id from $siigo->catalogs()->taxes()
)],
payments: [new InvoicePayment(id: 5636, value: 87)], // id from $siigo->catalogs()->paymentTypes('FV')
), idempotencyKey: 'order20260115001');
$invoice->id; // GUID assigned by Siigo
$invoice->name; // e.g. "FV-2-22"
// Later, look it up again:
$siigo->invoices()->find($invoice->id);
use Jonathan8312\Siigo\Siigo;
$siigo = app(Siigo::class);
$otherCompany = $siigo->withCredentials('other-username', 'other-access-key');
$otherCompany->invoices()->all();