mike42/escpos-php
PHP library for ESC/POS receipt printers. Print text, images, barcodes, QR codes and cut paper over USB, network, serial or Windows share. Includes connectors and utilities for common thermal POS printers and cash drawers.
This change updates the supported PHP versions, and contains some breaking changes to improve compatibility with newer PHP installs.
Breaking changes to users who are upgrading:
Deprecations:
DummyPrintConnector has been marked as deprecated and will be removed in a future release. The functionality is now available as the MemoryPrintConnector. This is a print connector which is used to capture input internally for testing, but is part of the public API.This change updates the supported PHP versions, and contains some breaking changes to improve compatibility with newer PHP installs.
Breaking changes to users who are upgrading:
declare(strict_types=1), which will cause errors for callers which are not using the correct scalar types.Bug fixes:
vendor/autoload.php, so they will work if this repository is checked out and used standalone.Breaking changes for developers who are upgrading:
intl PHP extension is now required (see docs). This replaces the use of mbstring and iconv, which are no longer used.Printer::text() will now throw an Exception if invalid UTF-8 is supplied. Use Printer::textRaw() if you are encoding text manually.CapabilityProfile have been removed (eg. StarCapabilityProfile). Use a named profile with CapabilityProfile::load() instead.New features:
gd or imagick being present in most cases.MultiplePrintConnector has been added, which allows developers to route identical print data to multiple printers simultaneously.Experimental features:
UnifontPrintBuffer, which uses glyphs from a GNU Unifont hex file as an alternative to the on-board printer fonts. See the included unifont-print-buffer.php example for usage.Bug fixes:
New features:
Newly tested printers:
New features:
Bug and code fixes:
WindowsPrintConnector for PHP 7.3 compatibilityNewly tested printers:
Bug and code fixes:
FilePrintConnector throwing warnings if it was closed twice. #595Printer.php, fixed by @wavoeNew printers tested:
This point release includes an updated copy of receipt-print-hq/escpos-printer-db, so that character encoding improvements are accessible on these printers:
You must have PHP 5.4 or HHVM 3.21 or higher to upgrade to this version.
New features:
Bug fixes:
Tested on new devices:
New features:
+ character in passwords for Windows shared printers #392Tested on new devices:
This is expected to be the final release in the 1.x series. Newer versions will drop support for some end-of-life PHP versions.
This release includes the addition of a timeout parameter to NetworkPrintConnector.
Tested on new devices:
Changes are limited to build and documentation fixes.
Bug fixes:
Tested on new devices:
Highlights of this release:
New device profiles included from receipt-print-hq/escpos-printer-db:
AuresCustomerDisplay class)New connector:
ApiPrintConnector, implementing connectivity to instances of ablunier/escpos-print-api.Build and documentation fixes:
Bug fixes:
LPT1 connection is used - #277Tested on new devices:
Highlights of this release:
WindowsPrintConnector, where smbclient is not installed #168This release also contains a large number of non-code updates. See all issues and pull requests in this milestone.
How can I help you explore Laravel packages today?