PHP code example of worksection / qrcode

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

    

worksection / qrcode example snippets




$generator = new QRCode($data, $options);

/* Output directly to standard output. */
$generator->output_image();

/* Create bitmap image. */
$image = $generator->render_image();
imagepng($image);
imagedestroy($image);

qrcode.php?s={symbology}&d={data}&{options}

qrcode.php?s=qr&d=HELLO%20WORLD&sf=8&ms=r&md=0.8