定制 supergnaw/luxiqr 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

supergnaw/luxiqr

最新稳定版本:0.0.1

Composer 安装命令:

composer require supergnaw/luxiqr

包简介

Class for creating QR codes

README 文档

README

Reinventing the wheel, one Quick Response Code at a time.

This is a project simply to learn how QR code generation works. There are a plethora of QR code generators in the wild, so choose which one suits your needs best.

Primary Objectives

  • Understand how different data is encoded into a QR code
  • Learn how to do polynomial math for Reed-Solomon error correction
    • (This was a nightmare)
  • Implement settings customization for more control over the final generation
  • Have various different output options for maximum integration compatibility

Usage

Basic Usage

$qrCode = new LuxiQR(
    data: "https://github.com/supergnaw/LuxiQR",
    eccLevel: "H"
);

echo $qrCode->outputTable();

Factory Methods

Call

$qrCode = LuxiQR::Call(
    countryCode: "+1",
    phoneNumber: "(519) 867-5309",
    eccLevel: "H"
);

echo $qrCode->outputTable();

Email

$qrCode = LuxiQR::Email(
    email: "example@domain.com",
    subject: "Test Email",
    body: "This is an example.",
        eccLevel: "H"
);

echo $qrCode->outputTable();

URL

$qrCode = LuxiQR::URL(
    url: "https://www.google.com/",
    eccLevel: "H"
);

echo $qrCode->outputTable();

WiFi

$qrCode = LuxiQR::WiFi(
    ssid: "",
    encryption: "WPA",
    password: "correct horse battery staple",
    hidden: false,
    eccLevel: "H"
);

echo $qrCode->outputTable();

YouTube

$qrCode = LuxiQR::YouTube(
    url: "https://www.youtube.com/watch?v=w5ebcowAJD8",
    eccLevel: "H"
);

echo $qrCode->outputTable();

Various References

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: AGPL-3.0
  • 更新时间: 2025-04-06