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

ActiveLibrary

gradient/qr-code
================

gradient qrcode Author\[Dela\]

012[1 issues](https://github.com/dela086/gradientQRCode/issues)PHP

Since Jul 7Pushed 5y ago1 watchersCompare

[ Source](https://github.com/dela086/gradientQRCode)[ Packagist](https://packagist.org/packages/gradient/qr-code)[ RSS](/packages/gradient-qr-code/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependenciesVersions (2)Used By (0)

gradientQRCode
==============

[](#gradientqrcode)

生成彩色、渐变色 二维码，依赖于endroid/qr-code php &gt;= 7.1 // 生成二维码

```
	function qrCode() {
		// logo 图片，目前必须为本地图片路径，网络路径暂不支持
		$logo = public_path('public/static/images') . 'AppIcon.png';
		// 二维码颜色，start为渐变色开始颜色，end为渐变色结束颜色
		$color = Factory::color(['start'=> '#FFC500', 'end'=>'#D60006']);
		$qrcode = (new QrCodeExt())
			->setText('https://github.com/dela086/gradientQRCode')
			->setMargin(50)				// 二维码外部延伸距离
			-> setLogoPath($logo)		// logo 图片
			-> setLogoSize(70, 70)		// 设置logo 大小
			->setLabel('这个标题随便写什么都行', 20, null, LabelAlignment::CENTER) // 设置标题，包含标题内容、字体大小、字体和位置
			->setOutput(function ($handle) {
				imagepng($handle);
			})
			->getOutput($color);
		$im = imagecreatefromstring($qrcode);
		header("Content-type: image/png");
		imagepng($im);
		exit;
	}

```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

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://avatars.githubusercontent.com/u/24951592?v=4)[dela086](/maintainers/dela086)[@dela086](https://github.com/dela086)

---

Top Contributors

[![dela086](https://avatars.githubusercontent.com/u/24951592?v=4)](https://github.com/dela086 "dela086 (21 commits)")

### Embed Badge

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

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

PHPackages © 2026

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