PHPackages                             hyperf-llm/chat - 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. hyperf-llm/chat

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

hyperf-llm/chat
===============

hyperf版本，支持市面主流chat引擎

v1.0.3(2y ago)221PHPPHP &gt;=8.0

Since Dec 1Pushed 2y ago1 watchersCompare

[ Source](https://github.com/wanggaoyang-zz/hyperf-chat-LLM)[ Packagist](https://packagist.org/packages/hyperf-llm/chat)[ RSS](/packages/hyperf-llm-chat/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (11)Versions (5)Used By (0)

使用教程
====

[](#使用教程)

### 安装

[](#安装)

```
composer require hyperf-llm/chat

```

### 发布

[](#发布)

```
php bin/hyperf.php vendor:publish hyperf-llm/chat

```

### ChatGPT使用

[](#chatgpt使用)

```
llm配置项'default'设置为'ChatGpt',

$chatBean = new ChatBean();
$chatBean->setPrompt('介绍一下hyperf');
$chatBean->setModel('gpt-3.5-turbo');
$llm =  LLMFactory::create();
$llm ->send($chatBean);

```

### 星火使用

[](#星火使用)

```
llm配置项'default'设置为'Spark',

$chatBean = new SparkBean();
$chatBean->setPrompt('介绍一下hyperf');
$llm =  LLMFactory::create();
$llm ->send($chatBean);

```

### 文心一言

[](#文心一言)

```
llm配置项'default'设置为'WenXin',

$chatBean = new WenXinBean();
$chatBean->setPrompt('介绍一下hyperf');
$llm =  LLMFactory::create();
return $llm ->send($chatBean);

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

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

Total

4

Last Release

878d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4942e3e7f239b67b874d53f3e891e45e1e60523a0fe6b8c5b9df18121e88ed70?d=identicon)[wanggaoyang-zz](/maintainers/wanggaoyang-zz)

---

Top Contributors

[![wanggaoyang-zz](https://avatars.githubusercontent.com/u/83255932?v=4)](https://github.com/wanggaoyang-zz "wanggaoyang-zz (8 commits)")

### Embed Badge

![Health badge](/badges/hyperf-llm-chat/health.svg)

```
[![Health](https://phpackages.com/badges/hyperf-llm-chat/health.svg)](https://phpackages.com/packages/hyperf-llm-chat)
```

###  Alternatives

[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k20](/packages/civicrm-civicrm-core)[bakame/laravel-domain-parser

Laravel package to integrate PHP Domain parser.

26534.8k4](/packages/bakame-laravel-domain-parser)[xmo/mine-core

mineadmin core package

1684.2k1](/packages/xmo-mine-core)[aeliot/todo-registrar

Register TODOs from source code in issue tracker

153.0k](/packages/aeliot-todo-registrar)

PHPackages © 2026

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