PHP code example of dazza-dev / laravel-feco

1. Go to this page and download the library: Download dazza-dev/laravel-feco 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/ */

    

dazza-dev / laravel-feco example snippets


use DazzaDev\LaravelFeco\Facades\LaravelFeco;

$numberingRange = LaravelFeco::getNumberingRange('nit_emisor');

use DazzaDev\LaravelFeco\Facades\LaravelFeco;

$client = LaravelFeco::getClient();
$client->setDocumentType('invoice'); // invoice, support-document, credit-note o debit-note
$client->setDocumentData($documentData);
$invoice = $client->sendDocument();

$client = LaravelFeco::getClient();
$listings = $client->getListings();
$listingByType = $client->getListing('identification-types');

$client = LaravelFeco::getClient();
$client->setEventCode('030'); // Consultar listado de eventos
$client->setEventData($eventData); // Datos del evento

$document = $client->sendEvent();

$client = LaravelFeco::getClient();
$events = $client->getStatusEvent('cufe/cude_documento');
bash
php artisan vendor:publish --tag="laravel-feco-config"
bash
php artisan vendor:publish --tag="laravel-feco-migrations"
bash
php artisan migrate
bash
php artisan feco:install