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(6y ago)0353MITPHPPHP &gt;=7.1

Since May 31Pushed 6y 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 3d 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

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity57

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

2541d 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

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[php-soap/ext-soap-engine

An ext-soap engine implementation

443.2M7](/packages/php-soap-ext-soap-engine)

PHPackages © 2026

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