PHP code example of adminweb / qrcode-zf2-module
1. Go to this page and download the library: Download adminweb/qrcode-zf2-module 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/ */
adminweb / qrcode-zf2-module example snippets
return array(
'modules' => array(
...,
'QRCode',
....
$qr = $this->getServiceLocator()->get('QRCode');
$qr->isHttps(); // or $qr->isHttp();
$qr->setData('Lorem Ipsum');
$qr->setDimensions(50, 50);
return new ViewModel(array('img'=> $qr->getResult()));
<img src=" echo $this->img;