Download the PHP package fmassei/qr-code without Composer
On this page you can find all versions of the php package fmassei/qr-code. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package qr-code
QR Code
This library helps you create QR codes in SVG, PNG, and binary format.
- Use the Imagick extension to render self-generated SVG images.
- Logo and label placement
- Can use of SVG frames
- Common generation options
- Matrix generated by bacon/bacon-qr-code
- Simple internal structure
This library is based on the structure of endroid/qr-code, trying to overcome many deal-breaker characteristics present at the time of forking. Among the bigger changes:
- Unified drawing (so results look the same in all formats)
- Switch from GD to Imagick (for SVG support)
- Switch from SimpleXMLElement to DOMDocument (more complex operations on SVG nodes)
Installation
Use Composer to install the library.
Usage: generation and options
Usage: working with results
One liner
Everyone expects it, I guess.
SVG frames
A frame is a template for outputting code, logo and label. The library recognizes any element inside the SVG frame with id equals to:
SVGFrame::IDQrCode
(default "QrCode"): this element will be subsituted with the QR code matrixSVGFrame::IDLogo
(default "Logo"): this element will be substituted with the passed Logo image (if any). No other variable of the Logo object is used.SVGFrame::IDLabel
(default "Label"): the value of this node will be substituted with the label text. No other variable of the Label object is used.
An example of the SVG structure and usage is available in the tests.
License
This bundle is under the MIT license. For the full copyright and license information please view the LICENSE file that was distributed with this source code.
All versions of qr-code with dependencies
bacon/bacon-qr-code Version ^2.0
ext-fileinfo Version *
ext-imagick Version *
ext-dom Version *