PHPackages                             keinx/think-qrcode - 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. keinx/think-qrcode

ActiveThink-extend[Utility &amp; Helpers](/categories/utility)

keinx/think-qrcode
==================

QR code generation for thinkphp6

1.1(4y ago)2264↓100%MITPHPPHP &gt;=7.1.0

Since Dec 30Pushed 4y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

ThinkPHP6 二维码生成
===============

[](#thinkphp6-二维码生成)

QR code generation for thinkphp6

### 安装方法

[](#安装方法)

```
composer require keinx/think-qrcode
```

### 配置方法

[](#配置方法)

配置文件路径：/config/qrcode.php

- cache\_dir = 生成地址
- background = 背景图片

### 使用方法

[](#使用方法)

```
$code = new Qrcode();
$code_path = $code->png('text')                     //生成二维码
    ->logo('static/image/logo.png')                 //生成logo二维码
    ->background(180, 500)                          //给二维码加上背景
    ->text($role, 20, ['center', 740], '#ff4351')   //添加文字水印
    ->text($nick_name, 20, ['center', 780], '#000000')
    ->getPath();                                    //获取二维码生成的地址
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

Total

2

Last Release

1589d ago

PHP version history (2 changes)1.0PHP &gt;=7.0.0

1.1PHP &gt;=7.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/5cf4b9a4c0ecd781b9b3b436670313b31e29fc12a4301cbda0a2bb1f7a748e9f?d=identicon)[keinx](/maintainers/keinx)

---

Top Contributors

[![keinx](https://avatars.githubusercontent.com/u/3890705?v=4)](https://github.com/keinx "keinx (3 commits)")

---

Tags

qrcodethinkphpthinkphp6think-qrcode

### Embed Badge

![Health badge](/badges/keinx-think-qrcode/health.svg)

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

###  Alternatives

[liliuwei/thinkphp-jump

适用于thinkphp6.0的跳转扩展

2874.4k1](/packages/liliuwei-thinkphp-jump)[xiaodi/think-pullword

ThinkPHP 分词/抽词 扩展包

5512.1k](/packages/xiaodi-think-pullword)[xiaodi/think-pinyin

ThinkPHP 中文转拼音扩展包

344.6k](/packages/xiaodi-think-pinyin)

PHPackages © 2026

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