Registry / other / mike42-escpos-php

mike42-escpos-php

JSON →
library2.0.2phppackagistunverified

PHP receipt printer library for use with ESC/POS-compatible thermal and impact printers.

composer require mike42/escpos-php
INSTALL
IMPORT
SIG · MIKE42-ESCPOS-PHP
M
mike42-escpos-php
otherphpv2.0.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Printer
use Mike42\Escpos\Printer;

Connect to a printer and print a simple text receipt.

use Mike42\Escpos\Printer; use Mike42\Escpos\PrintConnectors\FilePrintConnector; $connector = new FilePrintConnector("/dev/usb/lp0"); $printer = new Printer($connector); $printer->text("Hello World!\n"); $printer->cut(); $printer->close();
Debug
Known issues
breakingRequires PHP 7.0 or higher; some features may not work on older versions.
fix
Upgrade PHP to version 7.0 or later.
affects: <2.0
Upgrade
Version history
2.0.2latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
mike42-escpos-php — pip install mike42-escpos-php · libregistry