A driver for Epson ESC/POS thermal printers written in PHP.
My printer is the Hoinprinter 80mm Thermal Printer.
/src/driver.php file in your project.
The printer is initialized inside the
To output some text you have to
echo your text with the
printer_text('your text here'); function and send it via
netcat to your printer.
<?php require_once("/path/to/driver.php"); echo printer_text("foo bar"); printer_feed(2); printer_cut(); ?>
You need to know the IP-address of your printer and print via
php print.php | nc ip.of.your.printer 9100 -w 1
To check out every available function, please refer to the comments in