nataniel / bsxprinter
BSX Printer interface
v1.1
2020-07-04 18:58 UTC
Requires
- php: ^5.6 || ^7.0
- ext-simplexml: *
Requires (Dev)
- phpunit/phpunit: ^5.6.1
This package is auto-updated.
Last update: 2025-03-07 22:23:44 UTC
README
Install
composer require nataniel/bsxprinter
Create single Receipt
use Nataniel\BsxPrinter; $receipt = new BsxPrinter\Receipt($id, 'ZS-12345'); $receipt->setNIP('5422485927'); $receipt->addItem('Osadnicy z Catanu', 99, 1, 23) ->addItem('Dobble', 59.95, 2, 23); echo $receipt->toXML()->asXml();
Export Receipts as BSXPrinter compatible XML
$export = new BsxPrinter\Export(); $export->addReceipt($receipt); echo $export->toXML()->asXml();