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

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

houtian/think-qrcode
====================

QR code generation for thinkphp6

00PHP

Since Jul 23Pushed 1y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

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

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

QR code generation for thinkphp6

### 安装方法

[](#安装方法)

```
composer require aone/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

13

—

LowBetter than 1% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity18

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://www.gravatar.com/avatar/9cb89d72441a91e81eefc880e77a14662947b770993263a89c7d519d197202c0?d=identicon)[chaoyong213](/maintainers/chaoyong213)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[jonaspardon/laravel-event-visualizer

Laravel package to visualize events with their handlers, including jobs to chain them together

2644.9k](/packages/jonaspardon-laravel-event-visualizer)

PHPackages © 2026

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