PHP code example of thiagolp90 / qr-reader

1. Go to this page and download the library: Download thiagolp90/qr-reader library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

thiagolp90 / qr-reader example snippets




$qrcode = new \Zxing\QrReader('./qr.png');  //Image path
$text = $qrcode->text(); //Return text 
echo $text;

PHP >= 5.3
GD Library