<?php
namespace App\QRlib;
use CRUDBooster;
include "phpqrcode.php";

class QRCodeProv
{
    
    // public function makeqr($text, $outfile = false, $level = 0, $size = 3, $margin = 4, $saveandprint=false) 
    // {
    //     $enc = QRencode::factory($level, $size, $margin);
    //     return $enc->encodePNG($text, $outfile, $saveandprint=false);
    // }
    
    public function makeqr($text = '',$path = ''){
        QRcode::png($text, $path);
    }
    
    
}
