Download the PHP package davidnineroc/qrcodeplus without Composer
On this page you can find all versions of the php package davidnineroc/qrcodeplus. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download davidnineroc/qrcodeplus
More information about davidnineroc/qrcodeplus
Files in davidnineroc/qrcodeplus
Download davidnineroc/qrcodeplus
More information about davidnineroc/qrcodeplus
Files in davidnineroc/qrcodeplus
Vendor davidnineroc
Package qrcodeplus
Short Description 可以生成四色, 九色, 十六色, 背景图二维码, 彩色二维码!
License MIT
Package qrcodeplus
Short Description 可以生成四色, 九色, 十六色, 背景图二维码, 彩色二维码!
License MIT
Please rate this library. Is it a good library?
Informations about the package qrcodeplus
QrCodePlus
Feature
- 基于QR Code 的一个二维码包
- 可以生成四色, 九色, 十六色, 背景图二维码
-
后续功能增加中...
Requirement
- PHP >= 7.1
- composer
Installation
Usage
基本使用: (九色)
Documentation
MultipleColor Factory::color($hexColor = [], $alpha = 1)
- 创建一个颜色实例
- 参数一为十六进制颜色数组,颜色数量可为四,六,九
- 参数二为透明度
ImageStyle Factory::($sourceImage = '', $alpha = 1)
- 创建一个图片实例
- 参数一为图片源,可为图片字符串和资源句柄
- 参数二为透明度
QrCodePlus QrcodePlus::setText($text)
- 设置二维码的文字
setMargin(), setSize()
方法都是基于基类QrCode
- 更多方法:https://github.com/endroid/qr-code
Qrcodeplus QrcodePlus::setOutput(Closure $closure)
- 设置响应头输出,默认输出image/png
- 可自行在中运行输出
- 闭包只有一个参数那就是图片句柄,用于输出
void QrcodePlus::output(PlusInterface $qrcode)
- 输出彩色二维码
- 参数必须为 PlusInterface 实例
- 也就是通过
Factory::color()
或者Factory::image()
返回的实例
string QrcodePlus::getOutput(PlusInterface $qrcode)
- 获取彩色二维码的输出,不直接显示
License
- 获取彩色二维码的输出,不直接显示
MIT
All versions of qrcodeplus with dependencies
PHP Build Version
Package Version
The package davidnineroc/qrcodeplus contains the following files
Loading the files please wait ....