search
HomePHP LibrariesOther librariesPHP class for QR code reading
PHP class for QR code reading
<?php
include_once('./lib/QrReader.php');
$dir = scandir('qrcodes');
$ignoredFiles = array(
'.',
'..',
'.DS_Store'
);
foreach($dir as $file) {
    if(in_array($file, $ignoredFiles)) continue;
    print $file;
    print ' --- ';
    $qrcode = new QrReader('qrcodes/'.$file);
    print $text = $qrcode->text();
    print "<br/>";
}

This is a PHP class for QR code reading. Friends who need it can download it and use it.

Disclaimer

All resources on this site are contributed by netizens or reprinted by major download sites. Please check the integrity of the software yourself! All resources on this site are for learning reference only. Please do not use them for commercial purposes. Otherwise, you will be responsible for all consequences! If there is any infringement, please contact us to delete it. Contact information: admin@php.cn

Related Article

PHP implements QR code class with logoPHP implements QR code class with logo

26Mar2018

This article mainly introduces you to the php implementation of creating a QR code class, which supports setting the size, adding a LOGO, strokes, rounded corners, transparency, and other processing. Complete code, demonstration examples and detailed parameter descriptions are provided to facilitate everyone's learning and use. Hope it helps everyone.

Code for reading XML files using DOM class in phpCode for reading XML files using DOM class in php

25Jul2016

Code for reading XML files using DOM class in php

PHP class for reading xmlPHP class for reading xml

25Jul2016

PHP class for reading xml

PHP QR Code barcode and QR code generation class libraryPHP QR Code barcode and QR code generation class library

25Jul2016

PHP QR Code barcode and QR code generation class library

How to create a QR code class with logo through phpHow to create a QR code class with logo through php

08Jun2018

This article introduces how to create a QR code class in PHP, which supports setting size, adding LOGO, stroke, rounded corners, transparency, and other processing. Complete code, demonstration examples and detailed parameter descriptions are provided to facilitate everyone's learning and use. The functions are as follows: 1. Create a QR code 2. Add the logo to the QR code 3. The logo can be stroked 4. The logo can have rounded corners 5. The logo can have transparency 6. The logo image and output image types support png, jpg, gif format 7. You can set the output picture quality setting parameters...

Summary of methods for generating QR code images in PHPSummary of methods for generating QR code images in PHP

20Jan2017

This article summarizes and introduces two methods of generating QR code images in PHP. One is to use Google API and the other is to use the practical phpqrcode class library. Both are very convenient. Friends in need can refer to it.

See all articles