Releases: endroid/qr-code
Releases · endroid/qr-code
Refactoring
[BC Break] Moved the Twig extension to the bundle.
[BC Break] Refactor templates and routes
Please note that the routing has moved from annotations to a routing file. Check the README to see how to update your routing to use the yml file.
Improved extensibility and decoupling
- Registration of existing and new writers via WriterRegistry instead of hard coupling
- Moved logic of managing writers outside QrCode class
- Making more use of interfaces to improve extensibility
- Removed magic writer detection and added the concept of a default writer
- Updated documentation and tests
Please note there are some BC breaks involved
2.0.0
- Feature: validation of generated QR codes
- Feature: generate SVG / EPS file (with limited feature set)
- Refactoring: drop Swetake QR generation in favor of BaconQrCode
- Refactoring: separation of qr code and writer classes to decrease coupling and improve extensibility
- Refactoring: guessing type based on file extension
- Refactoring: error correction level and label alignment set up as enumerations
- Refactoring: make twig extension independent of service container and move outside of bundle
- Refactoring: make a distinction between qrcode_url and qrcode_path twig functions
- Refactoring: use property accessor component to set defined options in the factory
- Refactoring: logo and label placement
- Refactoring: cleaned up exceptions
- Refactoring: extended test suite
- Support: no JPEG generation (can be added)
- Support: alpha channels in back- and foreground colors not supported anymore (can be added)
- Support: dropped PHP 5.4 + 5.5 and HHVM because of incompatibility