mikica/zf2-qrcode-bitcoin

创建比特币二维码 - Zend 2 表单助手

1.01 2015-11-06 14:13 UTC

This package is auto-updated.

Last update: 2024-08-27 03:59:27 UTC


README

用于生成二维码的简单库。

安装

composer require mikica/zf2-qrcode-bitcoin

您需要注册新模块。在文件 config/application.config.php 中添加

'modules' => array(
    '...',
    'QrCodeBitcoin'
),

该模块已准备好使用。

在视图中使用

//width and height are optional.
echo $this->btc_qrcode($address, $amount, $width, $height);
echo $this->btc_qrcode("1J19TLLqu8DH2cv3ze7g1xZNwyyXWyGLKc","1.32");