123lab / php-qrcode-detector-decoder
二维码解码器/读取器
dev-master
2023-03-08 06:55 UTC
Requires
- php: ^5.6|^7.4
Requires (Dev)
- phpunit/phpunit: ^5.7
This package is not auto-updated.
Last update: 2024-10-03 12:36:01 UTC
README
这是一个用于检测和解码二维码的PHP库。
这是第一个也是唯一的无需扩展即可工作的二维码读取器。
移植自ZXing库
安装
推荐通过Composer安装此库。
从您的项目根目录运行以下命令
$ composer require 123lab/qrcode-detector-decoder
用法
require __DIR__ . "/vendor/autoload.php"; $qrcode = new QrReader('path/to_image'); $text = $qrcode->text(); //return decoded text from QR Code
要求
- PHP >= 5.6 ("^5.6|^7.4")
- GD库
贡献
您可以通过添加功能、清理代码、添加composer等方式帮助项目。
- 分支
- 创建您的功能分支:
git checkout -b my-new-feature
- 提交您的更改:
git commit -am '添加一些功能'
- 推送到分支:
git push origin my-new-feature
- 提交拉取请求