Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 22-Feb-2022 | - | ||||
src/ | H | 03-May-2022 | - | 7,952 | 5,180 | |
test/ | H | 18-Jun-2021 | - | 1,758 | 1,423 | |
CHANGELOG.md | H A D | 18-Jun-2021 | 1.1 KiB | 52 | 27 | |
LICENSE | H A D | 18-Jun-2021 | 1.3 KiB | 23 | 19 | |
README.md | H A D | 18-Jun-2021 | 1.6 KiB | 40 | 30 | |
composer.json | H A D | 18-Jun-2021 | 839 | 33 | 32 | |
phpunit.xml.dist | H A D | 18-Jun-2021 | 561 | 18 | 16 |
README.md
1# QR Code generator 2 3[![Build Status](https://api.travis-ci.org/Bacon/BaconQrCode.png?branch=master)](http://travis-ci.org/Bacon/BaconQrCode) 4[![Coverage Status](https://coveralls.io/repos/github/Bacon/BaconQrCode/badge.svg?branch=master)](https://coveralls.io/github/Bacon/BaconQrCode?branch=master) 5[![Latest Stable Version](https://poser.pugx.org/bacon/bacon-qr-code/v/stable)](https://packagist.org/packages/bacon/bacon-qr-code) 6[![Total Downloads](https://poser.pugx.org/bacon/bacon-qr-code/downloads)](https://packagist.org/packages/bacon/bacon-qr-code) 7[![License](https://poser.pugx.org/bacon/bacon-qr-code/license)](https://packagist.org/packages/bacon/bacon-qr-code) 8 9 10## Introduction 11BaconQrCode is a port of QR code portion of the ZXing library. It currently 12only features the encoder part, but could later receive the decoder part as 13well. 14 15As the Reed Solomon codec implementation of the ZXing library performs quite 16slow in PHP, it was exchanged with the implementation by Phil Karn. 17 18 19## Example usage 20```php 21use BaconQrCode\Renderer\ImageRenderer; 22use BaconQrCode\Renderer\Image\ImagickImageBackEnd; 23use BaconQrCode\Renderer\RendererStyle\RendererStyle; 24use BaconQrCode\Writer; 25 26$renderer = new ImageRenderer( 27 new RendererStyle(400), 28 new ImagickImageBackEnd() 29); 30$writer = new Writer($renderer); 31$writer->writeFile('Hello World!', 'qrcode.png'); 32``` 33 34## Available image renderer back ends 35BaconQrCode comes with multiple back ends for rendering images. Currently included are the following: 36 37- `ImagickImageBackEnd`: renders raster images using the Imagick library 38- `SvgImageBackEnd`: renders SVG files using XMLWriter 39- `EpsImageBackEnd`: renders EPS files 40