PHP code example of rodmarzavala / infile-php-laravel

1. Go to this page and download the library: Download rodmarzavala/infile-php-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/ */

    

rodmarzavala / infile-php-laravel example snippets


use InfilePhp\Laravel\Facades\Fel;
use InfilePhp\Core\Dte\Invoice;
use InfilePhp\Core\Dte\Recipient;
use InfilePhp\Core\Dte\Item;

$response = Fel::issue(
    Invoice::create()
        ->for(Recipient::withTaxId('12345678')->name('Juan Pérez')->address('Ciudad'))
        ->add(Item::product('Laptop')->quantity(1)->unitPrice(8500.00))
);

echo $response->uuid();
bash
php artisan fel:install
bash
php artisan vendor:publish --tag=fel-studio-assets