Proyek
Lihat di GitHub
mkoppanen/php-zbarcode
Tentang
PHP extension for reading barcodes. Uses ImageMagick(http://www.imagemagick.org/) for image support and zbar(http://zbar.sourceforge.net/) for scanning the barcodes.
Desain dan mediaPertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- -1
- dalam 15 hari
- -1
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
AsliSimple extension to read barcodes from images
Upgrade at 2018-12-05
Support PHP7, And fix some bug that may cause crash.
Basic usage:
<?php
/* Create new image object */
$image = new ZBarCodeImage("test.jpg");
/* Create a barcode scanner */
$scanner = new ZBarCodeScanner();
/* Scan the image */
$barcode = $scanner->scan($image);
/* Loop through possible barcodes */
if (!empty($barcode)) {
foreach ($barcode as $code) {
printf("Found type %s barcode with data %s\n", $code['type'], $code['data']);
}
}
?>
The EAN13 image in the tests/ directory is from http://en.wikipedia.org/wiki/File:Ean-13-5901234123457.png
Dependencies:
ZBar http://zbar.sourceforge.net/
ImageMagick http://www.imagemagick.org/
Jelajahi proyek terkait
Memuat…