bioforce / qrcode-detector-decoder
二维码解码器/阅读器
v1.0.5
2020-09-15 11:42 UTC
Requires
- php: ^5.6|^7.0
Requires (Dev)
- phpunit/phpunit: ^5.7
This package is not auto-updated.
Last update: 2024-09-26 06:54:52 UTC
README
这是一个用于检测和解码二维码的PHP库。
这是第一个也是唯一一个不需要扩展即可工作的二维码阅读器。
移植自 ZXing库
安装
安装此库的推荐方法是使用 Composer。
在项目根目录下运行以下命令
$ composer require khanamiryan/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
- GD库
贡献
您可以通过添加功能、清理代码、添加Composer等方式来帮助项目。
- 分支它
- 创建您的功能分支:
git checkout -b my-new-feature
- 提交您的更改:
git commit -am '添加一些功能'
- 推送到分支:
git push origin my-new-feature
- 提交拉取请求