PHPackages                             cmslz/qrcode-reader - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. cmslz/qrcode-reader

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

cmslz/qrcode-reader
===================

PHP二维码解析

04.5k1PHP

Since Aug 25Pushed 2y ago1 watchersCompare

[ Source](https://github.com/cmslz/qrcode-reader)[ Packagist](https://packagist.org/packages/cmslz/qrcode-reader)[ RSS](/packages/cmslz-qrcode-reader/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

php qr decoder
==============

[](#php-qr-decoder)

> php识别二维码, 不需要安装扩展

### 安装

[](#安装)

`composer require cmslz/qrcode-reader`

### 使用

[](#使用)

```
include __DIR__.'/vendor/autoload.php';

$qrcode = new \Cmslz\QrcodeReader\QrReader('./qr.png');  //图片路径
$text = $qrcode->text(); //返回识别后的文本
echo $text;

$qrcode = new \Cmslz\QrcodeReader\QrReader(file_get_contents('https://pbwci.qun.hk/FmPZqFEJnFkkihvZ9wAVjKAZzOUs?imageView2/2/q/70/w/400'),
            \Cmslz\QrcodeReader\QrReader::SOURCE_TYPE_BLOB);  //图片路径
$text = $qrcode->text(); //返回识别后的文本
echo $text;

```

### 需要

[](#需要)

```
PHP >= 5.3

```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity21

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/69b00719484af65dff4919ab96a56257a38360dcd06fc248b0d2b1950657870e?d=identicon)[cmslz](/maintainers/cmslz)

---

Top Contributors

[![cmslz](https://avatars.githubusercontent.com/u/48888146?v=4)](https://github.com/cmslz "cmslz (1 commits)")

### Embed Badge

![Health badge](/badges/cmslz-qrcode-reader/health.svg)

```
[![Health](https://phpackages.com/badges/cmslz-qrcode-reader/health.svg)](https://phpackages.com/packages/cmslz-qrcode-reader)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
