PHP code example of webrteu / smartbill
1. Go to this page and download the library: Download webrteu/smartbill 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/ */
webrteu / smartbill example snippets
use WeBRTeu\SmartBill\SmartBillService;
// Resolve the instance
$smartBillService = app(SmartBillService::class);
// Send an invoice
$result = $smartBillService->sendInvoice($invoice);
if ($result['success']) {
echo "Invoice saved with series: " . $result['series'] . " and number: " . $result['number'];
} else {
echo "Error: " . $result['error'];
}
bash
php artisan vendor:publish --tag="smartbill-config"