2017 © Pedro Peláez
 

library silex-qrcode

Silex QR Code Provider

image

gigablah/silex-qrcode

Silex QR Code Provider

  • Wednesday, April 1, 2015
  • by Gigablah
  • Repository
  • 1 Watchers
  • 3 Stars
  • 1,023 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 2 Versions
  • 1 % Grown

The README.md

QrCodeServiceProvider

The QrCodeServiceProvider integrates the endroid/qrcode library with your Silex application., (*1)

Installation

Use [Composer][3] to install the gigablah/silex-qrcode library by adding it to your composer.json., (*2)

{
    "require": {
        "silex/silex": "~1.0",
        "gigablah/silex-qrcode": "~0.0.1"
    }
}

Usage

Just register the service provider and optionally pass in some defaults., (*3)

$app->register(new Gigablah\Silex\QrCode\QrCodeServiceProvider(), array(
    'qrcode.options' => array(
        'size' => 300,
        'padding' => 10
    )
));

You may now generate QR code images as follows:, (*4)

$app['qrcode']->setText('http://example.org');

return new Symfony\Component\HttpFoundation\Response(
    $app['qrcode']->get('png'),
    200,
    array('Content-Type' => 'image/png')
);

Todo

  • Wrap the QrCode class to provide a fluent interface

License

Released under the MIT license. See the LICENSE file for details., (*5)

The Versions

01/04 2015

dev-master

9999999-dev https://github.com/gigablah/silex-qrcode

Silex QR Code Provider

  Sources   Download

MIT

The Requires

 

silex qrcode qr

30/10 2013

0.0.1

0.0.1.0 https://github.com/gigablah/silex-qrcode

Silex QR Code Provider

  Sources   Download

MIT

The Requires

 

silex qrcode qr