Skip to content

james2001/zxingbundle

Repository files navigation

Zxing Bundle

Call zxing (code barre reader) with Symfony2

Requirement

This library package requires PHP 5.3 or later, java, symfony/framework-bundle ~2.1 and james2001/zxing ~1.0

Setup

  • With composer (recommended)

Add the following line to the composer.json of your project and launch composer install command

{
    "require": {
        "james001/zxing-bundle": "~1.0"
    }
}

Launch install from your project root with:

composer install --no-dev --prefer-dist

Add bundle in AppKernel.php

 $bundles = array(
 ...
new James2001\Bundle\ZxingBundle\James2001ZxingBundle(),
...
 );

Use

$imagePath = '/path/image.jpg';
$myCode = $this->get('james2001.zxing')->findFirst($imagePath);

About

QRCode reader

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages