2017 © Pedro Peláez
 

library bacon-qr-code

BaconQrCode is a QR code generator for PHP.

image

bacon/bacon-qr-code

BaconQrCode is a QR code generator for PHP.

  • Wednesday, April 25, 2018
  • by DASPRiD
  • Repository
  • 16 Watchers
  • 437 Stars
  • 1,857,748 Installations
  • PHP
  • 46 Dependents
  • 8 Suggesters
  • 74 Forks
  • 2 Open issues
  • 7 Versions
  • 18 % Grown

The README.md

QR Code generator

PHP CI codecov Latest Stable Version Total Downloads License, (*1)

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., (*2)

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

Example usage

use BaconQrCode\Renderer\ImageRenderer;
use BaconQrCode\Renderer\Image\ImagickImageBackEnd;
use BaconQrCode\Renderer\RendererStyle\RendererStyle;
use BaconQrCode\Writer;

$renderer = new ImageRenderer(
    new RendererStyle(400),
    new ImagickImageBackEnd()
);
$writer = new Writer($renderer);
$writer->writeFile('Hello World!', 'qrcode.png');

Available image renderer back ends

BaconQrCode comes with multiple back ends for rendering images. Currently included are the following:, (*4)

  • ImagickImageBackEnd: renders raster images using the Imagick library
  • SvgImageBackEnd: renders SVG files using XMLWriter
  • EpsImageBackEnd: renders EPS files

GDLib Renderer

GD library has so many limitations, that GD support is not added as backend, but as separated renderer. Use GDLibRenderer instead of ImageRenderer. These are the limitations:, (*5)

  • Does not support gradient.
  • Does not support any curves, so you QR code is always squared.

Example usage:, (*6)

use BaconQrCode\Renderer\GDLibRenderer;
use BaconQrCode\Writer;

$renderer = new GDLibRenderer(400);
$writer = new Writer($renderer);
$writer->writeFile('Hello World!', 'qrcode.png');

The Versions

25/04 2018

dev-master

9999999-dev https://github.com/Bacon/BaconQrCode

BaconQrCode is a QR code generator for PHP.

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

25/04 2018

dev-feature/rewrite

dev-feature/rewrite https://github.com/Bacon/BaconQrCode

BaconQrCode is a QR code generator for PHP.

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

25/04 2018

2.0.0

2.0.0.0 https://github.com/Bacon/BaconQrCode

BaconQrCode is a QR code generator for PHP.

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

17/10 2017

1.0.3

1.0.3.0 https://github.com/Bacon/BaconQrCode

BaconQrCode is a QR code generator for PHP.

  Sources   Download

BSD-2-Clause

The Requires

  • ext-iconv *
  • php ^5.4|^7.0

 

The Development Requires

26/11 2016

1.0.2

1.0.2.0 https://github.com/Bacon/BaconQrCode

BaconQrCode is a QR code generator for PHP.

  Sources   Download

BSD-2-Clause

The Requires

  • php >=5.3.3
  • ext-iconv *

 

The Development Requires

09/01 2016

1.0.1

1.0.1.0 https://github.com/Bacon/BaconQrCode

BaconQrCode is a QR code generator for PHP.

  Sources   Download

BSD-2-Clause

The Requires

  • php >=5.3.3

 

27/08 2013

1.0.0

1.0.0.0 https://github.com/Bacon/BaconQrCode

BaconQrCode is a QR code generator for PHP.

  Sources   Download

BSD-2-Clause

The Requires

  • php >=5.3.3