catzilla / zbar-wrapper
PHP wrapper for ZBar library
v0.1.1
2019-02-17 18:20 UTC
Requires
- php: >=7.2.0
- symfony/process: ^4.2
This package is auto-updated.
Last update: 2026-03-18 22:21:43 UTC
README
PHP wrapper for ZBar library. Allows you to scan barcodes from your PHP project.
Requirements
- PHP 7.2.0 or newer
- ZBar must be installed in your system
- Program execution Functions must be allowed in your PHP configuration
allow_url_fopenmust be set toOnif you want to decode barcodes from remote sources
Installing
You can install this package via Composer:
composer require catzilla/zbar-wrapper
Usage
Very basic example:
<?php $zbar = new ZBarWrapper(); echo $zbar->decodeSingle('barcode.png'); // returns barcode value
For more options and detailed usage examples see example/example.php