PHP code example of rodmarzavala / infile-php-core
1. Go to this page and download the library: Download rodmarzavala/infile-php-core 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/ */
rodmarzavala / infile-php-core example snippets
use InfilePhp\Core\Dte\Invoice;
use InfilePhp\Core\Dte\Recipient;
use InfilePhp\Core\Dte\Item;
$response = Invoice::create()
->for(Recipient::withTaxId('12345678')->name('Juan Pérez')->address('Ciudad'))
->add(Item::product('Laptop')->quantity(1)->unitPrice(8500.00))
->issue();
echo $response->uuid();