adminweb/qrcode-zf2-module

This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (0.0.10) of this package.

A zend framework 2 module for generate qr code using the google api.

0.0.10 2013-12-02 19:40 UTC

This package is not auto-updated.

Last update: 2022-10-07 13:26:53 UTC


README

A zend framework 2 module for generate qr code using the google api.

See more in https://developers.google.com/chart/infographics/docs/qr_codes

Usage:

  1. In application.config.php

     return array(
           'modules' => array(
                ...,
                'QRCode',
                ....     
  2. In the controller

     $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()));
  3. In the view

     <img src="<?php echo $this->img; ?>" />