2025-09-04 19:56:35 +08:00
2025-09-04 19:56:35 +08:00
2025-09-07 20:04:28 +08:00
2025-09-04 19:56:35 +08:00
2025-09-07 19:36:04 +08:00
2025-09-07 19:36:04 +08:00
2025-09-07 19:36:04 +08:00
2025-09-04 19:56:35 +08:00
2025-09-04 19:56:35 +08:00
2025-09-04 19:56:35 +08:00
2025-09-04 19:56:35 +08:00
2025-09-04 19:56:35 +08:00
2025-09-04 19:56:35 +08:00
2025-09-04 19:56:35 +08:00
2025-09-04 23:08:54 +08:00
2025-09-07 19:36:04 +08:00
2025-09-07 19:36:04 +08:00
2025-09-04 19:56:35 +08:00
2025-09-04 19:56:35 +08:00
2025-09-04 19:56:35 +08:00
2025-09-04 19:56:35 +08:00
2025-09-04 19:56:35 +08:00
2025-09-04 19:56:35 +08:00
2025-09-04 23:08:54 +08:00

## 仓库

- [hhl_hyperf_service](https://codeup.aliyun.com/67039465d8d1ada68263f984/hhl/rewrite/hyperf_service.git) - git远程仓库地址

## 特性

- **最新技术栈**:使用 PHP8.3/hyperf3.1/swoole5.1.4 等后端前沿技术开发

## 文档

[文档地址 Github](https://hyperf.wiki/3.1/)

## 前序准备

- [php8.3](https://www.php.net/) 和 [git](https://git-scm.com/) - 项目开发环境
- [swoole](https://www.swoole.com/) - 熟悉 swoole 特性
- [php8.3](https://www.php.net/) - 熟悉 php 基础语法
- [hyperf](https://hyperf.wiki/3.1/) - 熟悉 `hyperf` 基本语法

## 安装和使用

- 安装 swoole 和 xlswriter 扩展

```
自行搜索安装教程
```

- 获取代码

```bash
git clone https://git.ctexthuang.com/ctexthuang/hyperf_test.git

mkdir uploads
```

- vendor

```bash
composer install
```

- 运行

```bash
cp .env.example .env

vim .env

php bin/hyperf.php start
```

- command 函数
```bash
#框架自有
php bin/hyperf.php gen:controller LoginController
php bin/hyperf.php gen:model UserModel
php bin/hyperf.php gen:request LoginRequest
php bin/hyperf.php gen:command TestCommand
php bin/hyperf.php gen:job TestJob
php bin/hyperf.php gen:listener TestListener
php bin/hyperf.php gen:middleware AuthMiddleware
php bin/hyperf.php gen:amqp-consumer DemoConsumer
php bin/hyperf.php gen:amqp-producer DemoProducer

#新增命令
php bin/hyperf.php gen:service LoginService
php bin/hyperf.php gen:cron OssTask
php bin/hyperf.php gen:event TestEvent
```

## Git 贡献提交规范

- `feat` 新功能
- `fix` 修补 bug
- `docs` 文档
- `style` 格式、样式(不影响代码运行的变动)
- `refactor` 重构(即不是新增功能,也不是修改 BUG 的代码)
- `perf` 优化相关,比如提升性能、体验
- `test` 添加测试
- `build` 编译相关的修改,对项目构建或者依赖的改动
- `ci` 持续集成修改
- `chore` 构建过程或辅助工具的变动
- `revert` 回滚到上一个版本
- `workflow` 工作流改进
- `mod` 不确定分类的修改
- `wip` 开发中
- `types` 类型
Description
No description provided
Readme 353 KiB
Languages
PHP 97.3%
Dockerfile 2.7%