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();
$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
其他信息
- 授权协议: AGPL-3.0
- 更新时间: 2025-04-06