Skip to content
This repository has been archived by the owner on Sep 25, 2022. It is now read-only.
/ zf2-module-qrcode Public archive

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

Notifications You must be signed in to change notification settings

AdminWeb/zf2-module-qrcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QR Code for Zend Framework 2

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; ?>" />

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages