<?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.
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
26 Mar 2018
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.
25 Jul 2016
Code for reading XML files using DOM class in php
25 Jul 2016
PHP QR Code barcode and QR code generation class library
08 Jun 2018
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...
20 Jan 2017
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.
Hot Tools
PHP library for dependency injection containers
PHP library for dependency injection containers
A collection of 50 excellent classic PHP algorithms
Classic PHP algorithm, learn excellent ideas and expand your thinking
Small PHP library for optimizing images
Small PHP library for optimizing images