PHP code example of yakeing / qrcode

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

    

yakeing / qrcode example snippets



    $text //Enter text (string)
    $pixel //Output image size (ini)
    $icon //Small icon (url) (Must be a square image, otherwise the image will be distorted)
    $distinguish //Recognition rate (L=7% , M=15% , Q=25% , H=30%)
    $type //Output image format (jpg/png) (Due to GIF copyright dispute)
    $margin //Margin white edge (ini 0-4)
    $color //RGB Colour array('255,255,255', '0,0,0'); Hexadecimal Colour FF0000,000000
    $stream //Output source code (true/false)
    $spec //specification Matrix with 0-40 specifications
    $OutputPath //Path to generate pictures
    qrcode::image($text, $pixel, $icon, $distinguish, $type, $margin, $color, $stream, $OutputPath);