Call zxing (code barre reader) in php
This library package requires PHP 5.3 or later and java.
If you want to use it very easily, you should consider installing composer on your system. It is not mandatory though.
- With composer (recommended)
Add the following line to the composer.json
of your project and launch composer install command
{
"require": {
"james001/zxing": "~1.0"
}
}
Launch install from your project root with:
composer install --no-dev --prefer-dist
This library is fully unit tested, and uses PHPUnit to launch the tests.
Once you installed the dev dependencies, launch the test suite with the following command:
./vendor/bin/phpunit tests