承接 kuriousagency/qrcode 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kuriousagency/qrcode

最新稳定版本:3.0.0

Composer 安装命令:

composer require kuriousagency/qrcode

包简介

Generate a QR code

README 文档

README

Generate a QR code

Requirements

This plugin requires Craft CMS 5.0 or later.

Installation

To install the plugin, follow these instructions.

  1. Open your terminal and go to your Craft project:
    cd /path/to/project
  1. Then tell Composer to load the plugin:
    composer require webdna/qrcode
  1. In the Control Panel, go to Settings → Plugins and click the “Install” button for QRCode.

QRCode Overview

This allows the generation of a QRCode via a fieldtype, variable or twig filter.

QRCode Options

All instances of QRCode accept the following parameters:

  1. Data: the data for the code.
  2. Size: the size in pixels (default: 300)

Using QRCode

Fieldtype: In the fieldtype settings, you can use twig to dynamically get properties of the element that it is set on. eg on a user element:

    {"name":"{{ user.fullName }}"}

Twig variables:

    {{ craft.qrcode.generate(1234567890) }}

    {{ craft.qrcode.generate({"name":"John Smith"}, 100) }}

Twig Filters:

    {{ 1234567890|qrcode }}

    {{ {"name":"John Smith"}|qrcode(100) }}

Brought to you by webdna

统计信息

  • 总下载量: 8.79k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 2
  • Forks: 7
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-02-04