PHPackages                             overlordz/phpqrcode - 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. overlordz/phpqrcode

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

overlordz/phpqrcode
===================

phpqrcode

v0.1.1(6y ago)561MITPHP

Since Jul 17Pushed 6y ago1 watchersCompare

[ Source](https://github.com/overlordz/phpqrcode)[ Packagist](https://packagist.org/packages/overlordz/phpqrcode)[ RSS](/packages/overlordz-phpqrcode/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

生成动态图的二维码
---------

[](#生成动态图的二维码)

### 环境要求

[](#环境要求)

1. php\_GD 库扩展
2. php\_imagick 扩展
3. ImageMagick 软件

### 包使用方式

[](#包使用方式)

```
use PhpQrcode\PhpQrcode;

$data = [
    'content' => 'https://github.com/overlordz',
    'bgPic' => dirname(__DIR__).'/src/assets/images/example.gif',
    'imgDir' => dirname(__DIR__).'/temp/images/',
    'tempQRcodeDir' => dirname(__DIR__).'/temp/tempQRcode/',
];

$res = PhpQrcode::QRcodePng($data);

```

**字段标注**

- content =&gt; 二维码内容
- bgPic =&gt; 背景图片
- imgDir =&gt; 生成合成图片的目录地址
- tempQRcodeDir =&gt; 生成临时二维码的图片信息

### 效果图如下：

[](#效果图如下)

[![8b858c9601cedeb50d6a025ce1dfec30](./temp/images/8b858c9601cedeb50d6a025ce1dfec30.gif)](./temp/images/8b858c9601cedeb50d6a025ce1dfec30.gif)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity50

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 ~135 days

Total

2

Last Release

2362d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ce969e7c72625bf8f4b8ce4cace4904d5b3570ce3e71961adaacd718401a207d?d=identicon)[koala](/maintainers/koala)

---

Top Contributors

[![overlordz](https://avatars.githubusercontent.com/u/13598683?v=4)](https://github.com/overlordz "overlordz (5 commits)")

### Embed Badge

![Health badge](/badges/overlordz-phpqrcode/health.svg)

```
[![Health](https://phpackages.com/badges/overlordz-phpqrcode/health.svg)](https://phpackages.com/packages/overlordz-phpqrcode)
```

###  Alternatives

[element-34/php-webdriver

Thin php client for webdriver

121233.8k1](/packages/element-34-php-webdriver)[denason/wikipedia

A Laravel package to get data and manage information from Wikipedia Directly

121.9k](/packages/denason-wikipedia)

PHPackages © 2026

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