catzilla / zbar-wrapper
PHP wrapper for ZBar library
Installs: 5 591
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: >=7.2.0
- symfony/process: ^4.2
This package is auto-updated.
Last update: 2025-05-18 20:33:52 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_fopen
must be set toOn
if 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