Skip to content

SwipeAndTap/qrcode-bundle

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QRCodeBundle

This bundle aims for an easy Symfony2 and Twig integration for QRCodes. It allows for multiple qr-implementations and different storage-solutions to store qr-code-configuration between requests.

Current state

While most of the groundwork is done, the library is in pre-alpha state. There is only 1 renderer implementation (for endroid/qrcode) and only a session-storage. Also tests and documentation are insufficient or even missing.

But it works in this specific configuration

Examples

Assuming $container is the Symfony2 DIC:

use Zikarsky\Bundle\QRCodeBundle as QR;

$qrcodeService = $container->get('zikarsky_qrcode.service');
$qrCode = new QR\QRCode('Test');

/** @var $renderedQRCode QR\RenderedQRCode */
$renderedQRCode = $qrCodeService->render($qrCode);

Or in a twig template:

<img src="proxy.php?url=https%3A%2F%2Fgithub.com%2F%7B%7B+qrcode%28"test", 150, "medium") }}" />

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • PHP 100.0%