PHP library for printing to ESC/POS-compatible thermal and impact printers
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: