lostcause/smartbill
最新稳定版本:1.0
Composer 安装命令:
composer require lostcause/smartbill
包简介
SmartBill API wrapper compatible for Laravel
关键字:
README 文档
README
Simple SmartBill API integration for Laravel.
Installation
You can install the package via composer:
composer require necenzurat/smartbill
Usage
Click for usage
$invoice = [ 'companyVatCode' => config('smartbill.vatCode'), 'client' => [ 'name' => "Intelligent IT", 'vatCode' => "RO12345678", 'regCom' => "", 'address' => "str. Sperantei, nr. 5", 'isTaxPayer' => false, 'city' => "Sibiu", 'country' => "Romania", 'email' => "office@intelligent.ro", ], 'issueDate' => date('Y-m-d'), 'seriesName' => config('smartbill.invoiceSeries'), 'isDraft' => false, 'dueDate' => date('Y-m-d', time() + 3600 * 24 * 30), 'mentions' => '', 'observations' => '', 'deliveryDate' => date('Y-m-d', time() + 3600 * 24 * 10), 'precision' => 2, 'products' => [ [ 'name' => "Produs 1", 'code' => "ccd1", 'isDiscount' => false, 'measuringUnitName' => "buc", 'currency' => "RON", 'quantity' => 2, 'price' => 10, 'isTaxIncluded' => true, 'taxName' => "Redusa", 'taxPercentage' => 9, 'isService' => false, 'saveToDb' => false, ], ], ]; echo 'Emitere factura simpla: '; try { $smartbill = new SmartBill(); $output = $smartbill->createInvoice($invoice); //see docs for response $invoiceNumber = $output['number']; $invoiceSeries = $output['series']; echo $invoiceSeries . $invoiceNumber; } catch (\Exception $ex) { echo $ex->getMessage(); }
Testing
hell no
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email necenzurat@gmail.com instead of using the issue tracker.
Credits
License
The WTFPL. Please see License File for more information.
统计信息
- 总下载量: 15
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-10-11