PHPackages                             wpjscc/chatgpt-blog - 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. wpjscc/chatgpt-blog

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

wpjscc/chatgpt-blog
===================

10JavaScript

Since Apr 9Pushed 3y ago1 watchersCompare

[ Source](https://github.com/wpjscc/chatgpt-blog)[ Packagist](https://packagist.org/packages/wpjscc/chatgpt-blog)[ RSS](/packages/wpjscc-chatgpt-blog/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

基于reactphp的chagpt-blog
======================

[](#基于reactphp的chagpt-blog)

使用chatgpt写博客，持久化返回的内容

> 注意第一个prompt会作为文章的标题

特性
--

[](#特性)

- SSE--实时返回结果（类似于官网）
- 支持markwon高亮
- 支持复制markwon代码
- 支持生成的html代码预览(tailwindcss)
- 可自定义token（会优先使用url上带着的token）
- 支持代理
- 支持保存数据库

```
CREATE TABLE `blog` (
  `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
  `content` text,
  `slug` char(11) DEFAULT NULL,
  `is_self` tinyint(2) DEFAULT '0',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `description` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `idx_slug` (`slug`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

```

install
-------

[](#install)

```
composer create-project wpjscc/chatgpt-blog chatgpt-blog dev-master

```

run
---

[](#run)

```
cd chatgpt-blog

php app.php --prot=8080 --token=xxx --database=user:pass@localhost/bookstore

```

visit
-----

[](#visit)

docker
------

[](#docker)

```
docker run -p 8080:8080 --rm -it wpjscc/chatgpt-blog php app.php --prot=8080 --token=xxx

```

```
docker build -t wpjscc/chatgpt-blog . -f Dockerfile
docker push wpjscc/chatgpt-blogy

```

proxy
-----

[](#proxy)

```
php app.php --prot=8080 --token=xxx --proxy=127.0.0.1:7890

```

custome token
-------------

[](#custome-token)

example
-------

[](#example)

[![image](https://user-images.githubusercontent.com/76907477/223346470-e49cdf41-0dbd-4ab2-b38c-2c2eec007d21.png)](https://user-images.githubusercontent.com/76907477/223346470-e49cdf41-0dbd-4ab2-b38c-2c2eec007d21.png)

[![image](https://user-images.githubusercontent.com/76907477/223346528-41663c8c-b660-4cc0-858a-806fe9d0210e.png)](https://user-images.githubusercontent.com/76907477/223346528-41663c8c-b660-4cc0-858a-806fe9d0210e.png)

其他
--

[](#其他)

如果不需要保存数据库，请移步

###  Health Score

14

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity23

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/76907477?v=4)[wpjscc](/maintainers/wpjscc)[@wpjscc](https://github.com/wpjscc)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/wpjscc-chatgpt-blog/health.svg)

```
[![Health](https://phpackages.com/badges/wpjscc-chatgpt-blog/health.svg)](https://phpackages.com/packages/wpjscc-chatgpt-blog)
```

###  Alternatives

[jxlwqq/watermark

generate text watermark with canvas

1016.8k](/packages/jxlwqq-watermark)

PHPackages © 2026

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