sciencellc / php-axiohm-emu
A command generator for the emulated part of ESC-POS for the Axiohm A711 printer.
This package's canonical repository appears to be gone and the package has been frozen as a result.
dev-default
2015-02-16 21:19 UTC
Requires
- php: >=5.3.0
Suggests
- pigult/php-ipp: Print to a printer on a raw CUPS queue
- tecnick.com/tcpdf: Generate QR codes
This package is auto-updated.
Last update: 2020-07-29 04:27:41 UTC
README
This implements most of the ESC/POS command set used on Axiohm A711 emulating thermal printers. This has only been tested on the Nanoptix Spillproof printer, but it may work with other printers.
Basic usage
// From pigult/php-ipp
$ipp = new CupsPrintIPP();
$ipp->setHost("127.0.0.1");
$ipp->setPrinterUri("/printers/printer");
$data = \SCIENCE\AxiohmEmu\Protocol::start()
->text("Hello world!\n")
->end();
$ipp->setData($data);
$ipp->printJob();