New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

adminweb/qrcode-zf2-module

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adminweb/qrcode-zf2-module

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

Source
Packagist
This package is abandoned and is no longer maintained.
The author recommends using true instead.
This version has been yanked by its maintainers and should not be used.
Version
0.0.10
Version published
Total downloads
4.2K
Maintainers
0
Created
Source

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:

  • In application.config.php

     return array(
           'modules' => array(
                ...,
                'QRCode',
                ....     
    
  • 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()));
    
  • In the view

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

Keywords

framework

FAQs

Package last updated on 02 Dec 2013

Related posts