PHP code example of tzepart / qr_decoder

1. Go to this page and download the library: Download tzepart/qr_decoder 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/ */

    

tzepart / qr_decoder example snippets




use \DecoderQR\Helper\FileHelper;
use DecoderQR\DecoderQR;

$dataPath = '/path/to/decoder/file.png';
$compressFlag = true;

$fileHelper = new FileHelper($dataPath);
$results = (new DecoderQR($fileHelper))->getResults($compressFlag);
var_dump($results); //output decoding results