PHPackages                             uniondrug/qr-code - 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. uniondrug/qr-code

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

uniondrug/qr-code
=================

Uniondrug qr-code

1.0.3(7y ago)0353MITPHPPHP &gt;=7.1

Since May 31Pushed 7y ago9 watchersCompare

[ Source](https://github.com/uniondrug/qr-code)[ Packagist](https://packagist.org/packages/uniondrug/qr-code)[ RSS](/packages/uniondrug-qr-code/feed)WikiDiscussions development Synced 2w ago

READMEChangelog (4)Dependencies (7)Versions (5)Used By (0)

QR Code
=======

[](#qr-code)

*From: [endroid/qr-code:3.5.8](https://github.com/endroid/qr-code/blob/3.5.8/README.md)*

二维码生成问题修正
---------

[](#二维码生成问题修正)

### 问题描述：

[](#问题描述)

```
原endroid/qr-code二维码生成组件与phar包不兼容,  参考的错误信息："Invalid logo path: "

```

### 解决步骤：

[](#解决步骤)

```
1. 所有使用endroid/qr-code并且以phar启动的项目请修改项目根目录composer.json, 将原有的"endroid/qr-code": "^1.0"修改为"uniondrug/qr-code": "^1.0"
    "require" : {
           ...
           "uniondrug/qr-code": "^1.0"
    }

2. 在项目根目录app目录下查找setErrorCorrectionLevel, 将$qrCode->setErrorCorrectionLevel(ErrorCorrectionLevel::HIGH); 修改为 $qrCode->setErrorCorrectionLevel(new ErrorCorrectionLevel(ErrorCorrectionLevel::HIGH));

3. 上传代码，更新composer，重新生成phar包，并重启服务

```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

2588d ago

PHP version history (2 changes)1.0.1PHP &gt;=7.0

1.0.2PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/865ceb7d8226574735eab8fc82de9cfbc4a708c291b3c816e75d53944348b686?d=identicon)[wsfuyibing](/maintainers/wsfuyibing)

---

Top Contributors

[![plutolo](https://avatars.githubusercontent.com/u/9401569?v=4)](https://github.com/plutolo "plutolo (10 commits)")

### Embed Badge

![Health badge](/badges/uniondrug-qr-code/health.svg)

```
[![Health](https://phpackages.com/badges/uniondrug-qr-code/health.svg)](https://phpackages.com/packages/uniondrug-qr-code)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.0k](/packages/craftcms-cms)[symfony/form

Allows to easily create, process and reuse HTML forms

2.8k162.1M3.4k](/packages/symfony-form)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M551](/packages/shopware-core)[typo3/cms

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)[oro/platform

Business Application Platform (BAP)

645143.5k114](/packages/oro-platform)

PHPackages © 2026

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