sciencellc/php-axiohm-emu

A command generator for the emulated part of ESC-POS for the Axiohm A711 printer.

dev-default 2015-02-16 21:19 UTC

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();