QR Code Generator for PHP

Ben Scholzen 5a91b62b9d Fix PHP version requirement 7 years ago
src 2c6a427910 Add missing EcBlock for version 7 7 years ago
tests 8f16a007ea Fix unit tests on PHP 7.1 and add PHP 5.6 to test matrix 8 years ago
.gitignore 8f16a007ea Fix unit tests on PHP 7.1 and add PHP 5.6 to test matrix 8 years ago
.travis.yml ee160a3dac Raise minimum version to 5.4 7 years ago
LICENSE 3e1c3954f9 Initial commit 12 years ago
Module.php 30d2a98b9e Moving Module.php back to where it belongs 11 years ago
README.md 5eae94d4d7 Update sample usage 10 years ago
autoload_classmap.php 3f3fcf4bb2 Add Renderer\Html. 12 years ago
autoload_function.php 3e1c3954f9 Initial commit 12 years ago
autoload_register.php 3e1c3954f9 Initial commit 12 years ago
composer.json 5a91b62b9d Fix PHP version requirement 7 years ago

README.md

QR Code generator

Master: Build Status

Introduction

BaconQrCode is a port of QR code portion of the ZXing library. It currently only features the encoder part, but could later receive the decoder part as well.

As the Reed Solomon codec implementation of the ZXing library performs quite slow in PHP, it was exchanged with the implementation by Phil Karn.

Example usage

$renderer = new \BaconQrCode\Renderer\Image\Png();
$renderer->setHeight(256);
$renderer->setWidth(256);
$writer = new \BaconQrCode\Writer($renderer);
$writer->writeFile('Hello World!', 'qrcode.png');