Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes for release v3.0 #803

Merged
merged 38 commits into from
Oct 13, 2019
Merged

Changes for release v3.0 #803

merged 38 commits into from
Oct 13, 2019

Conversation

mike42
Copy link
Owner

@mike42 mike42 commented Oct 5, 2019

Breaking changes for developers who are upgrading.

  • Support for PHP 5.x and HHVM has been removed. PHP 7.0 or higher is required from this version.
  • The intl PHP extension is now required (see docs). This replaces the use of mbstring and iconv, which are no longer used.
  • composer is now required to correctly load dependencies, where it was previously optional.
  • Printer::text() will now throw an Exception if invalid UTF-8 is supplied. Use Printer::textRaw() if you are encoding text manually.
  • Printer-specific sub-classes of CapabilityProfile have been removed (eg. StarCapabilityProfile). Use a named profile with CapabilityProfile::load() instead.
  • The API now uses scalar and return type hinting in some places, which makes it more strict than it was previously.

New features:

  • Inclusion of new printer profiles from escpos-printer-db.
  • gfx-php has been added as a dependency, which allows image processing to work without gd or imagick being present in most cases.
  • A new MultiplePrintConnector has been added, which allows developers to route identical print data to multiple printers simultaneously.

Experimental features:

  • A new 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:

mike42 added 30 commits June 30, 2018 21:39
…PrintConnector (known as 'PrintServerApi' in ablunier/escpos-print-api)
Include v3 work in development branch
Update gfx-php dependency to 0.6
Add checks for failed tmp file creation
…ly; new serialised files and character-encodings output - change in the code page selected for Hungarian, visually verified on TM-T20II
@mike42 mike42 changed the title [WIP] Changes for release v3.0 Changes for release v3.0 Oct 13, 2019
@mike42 mike42 merged commit dcb569a into master Oct 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant