phillipsdata / boca
Boca Printer Library
1.0.0
2015-05-21 17:35 UTC
Requires
- php: >=5.3
- clue/socket-raw: ~1.2
Requires (Dev)
- phpunit/phpunit: ~4.0
- squizlabs/php_codesniffer: ~2.2
This package is auto-updated.
Last update: 2024-11-23 10:18:31 UTC
README
#Boca
A library for interfacing with Boca printers.
Requirements
- PHP >=5.3
Installation
Install the package using Composer. Edit your project's composer.json
file to require phillipsdata/boca
.
"require": { "phillipsdata/boca": "~1.0" }
Basic Usage
use PhillipsData\Boca\Connection; use PhillipsData\Boca\Transport; $connection = new Connection('tcp://127.0.0.1:9100'); $connection->open(); $transport = new Transport($connection); $response = $transport->send('<MAC>\n\n'); $connection->close(); echo $response; // outputs something like: MAC Address: 00:0D:00:00:01