yakeing/qrcode

这是一个php QR Code类

v3.2.1 2019-09-02 02:33 UTC

This package is auto-updated.

Last update: 2024-09-16 12:53:02 UTC


README

这是一个php QR Code类,这个库可以帮助您迅速生成QR码。

中文文档

Travis CI徽章

Travis-ci

codecov徽章

codecov

Github徽章

Downloads Size tag license languages

安装

使用 Composer 安装库。当然,您也可以访问 Packagist 查看。

    $ composer require yakeing/qrcode

QRCode初始化

    $text //Enter text (string)
    $pixel //Output image size (ini)
    $icon //Small icon (url) (Must be a square image, otherwise the image will be distorted)
    $distinguish //Recognition rate (L=7% , M=15% , Q=25% , H=30%)
    $type //Output image format (jpg/png) (Due to GIF copyright dispute)
    $margin //Margin white edge (ini 0-4)
    $color //RGB Colour array('255,255,255', '0,0,0'); Hexadecimal Colour FF0000,000000
    $stream //Output source code (true/false)
    $spec //specification Matrix with 0-40 specifications
    $OutputPath //Path to generate pictures
    qrcode::image($text, $pixel, $icon, $distinguish, $type, $margin, $color, $stream, $OutputPath);

赞助商

如果您从我所创建的任何内容中获得了价值,那么我非常感谢您通过支付捐款来支持我。

Sponsor

作者

微博: yakeing

推特: yakeing