1
1
<div align =" center " >
2
2
3
- <picture >
4
- <img alt =" logo " src =" https://img.picgo.net/2024/04/04/logobg-2b73c6d349a3ad9f7.png " >
5
- </picture >
3
+ ![ ] ( https://img.picgo.net/2024/04/04/logobg-2b73c6d349a3ad9f7.png )
6
4
7
5
# OpenBMCLAPI for PHP
8
6
9
7
✨ 一个基于PHP以及 [ Swoole] ( https://www.swoole.com/ ) 的 [ OpenBMCLAPI] ( https://github.com/bangbang93/openbmclapi ) 节点端 ✨
10
8
11
- <a href =" https://gitmoji.dev " >
12
- <img
13
- src="https://img.shields.io/badge/gitmoji-%20😜%20😍-FFDD67.svg?style=flat-square "
14
- alt="Gitmoji"
15
- />
16
- </a >
9
+ ![ PHP] ( https://img.shields.io/badge/PHP-%3E=8.0.0-blue?logo=PHP&style=flat-square )
10
+ ![ Swoole] ( https://img.shields.io/badge/Swoole-%3E=5.1.0-blue?style=flat-square )
11
+ ![ gitmoji] ( https://img.shields.io/badge/gitmoji-%20😜%20😍-FFDD67.svg?style=flat-square )
17
12
18
- </div >
19
13
20
- ## 警告:此版本并不适合在正式环境使用,建议使用其他语言版本节点端
14
+ ![ GitHub top language] ( https://img.shields.io/github/languages/top/AppleBlockTeam/php-openbmclapi?style=flat-square )
15
+ ![ GitHub License] ( https://img.shields.io/github/license/AppleBlockTeam/php-openbmclapi?style=flat-square )
16
+ ![ GitHub Release] ( https://img.shields.io/github/v/release/AppleBlockTeam/php-openbmclapi?style=flat-square )
17
+ ![ GitHub Repo stars] ( https://img.shields.io/github/stars/AppleBlockTeam/php-openbmclapi?style=flat-square )
18
+
19
+ </div >
21
20
22
21
## ⚙️ 部署
23
22
24
23
### 源码部署
25
24
26
25
#### 环境要求
27
26
28
- 建议 PHP 版本 >= 8.0.0
27
+ PHP 版本 >= 8.0.0
28
+
29
+ [ Swoole] ( https://www.swoole.com/ ) 版本 >= 5.1.
29
30
30
- 以及对应版本的 [ Swoole ] ( https://www.swoole.com/ ) 和 [ Zstd] ( https://github.com/kjdev/php-ext-zstd ) 扩展库
31
+ 以及对应版本的 [ Zstd] ( https://github.com/kjdev/php-ext-zstd )
31
32
32
33
#### 开始部署
33
34
@@ -65,6 +66,7 @@ $config=[
65
66
" public_port" => 4000,//服务端口
66
67
" CLUSTER_ID" => " " ,
67
68
" CLUSTER_SECRET" => " " ,
69
+ " byoc" => false,
68
70
],
69
71
" file" => [
70
72
" cache_dir" => " ./cache" ,//缓存文件夹
@@ -79,10 +81,12 @@ $config=[
79
81
` ` `
80
82
81
83
# # 📍 Todo
82
- - [x] 可以正常上线使用(主要)
84
+ - [ ] Web仪表盘(主要)
85
+ - [ ] 支持WebDAV
86
+ - [ ] 打包二进制文件
83
87
- [ ] 完善Log系统
84
88
- [ ] 添加注释
85
- - [ ] Web仪表盘
89
+ - [x] 可以正常上线使用
86
90
87
91
# # ❓ FAQ
88
92
@@ -99,7 +103,20 @@ PHPOpenBmclApi 采用独立版本号+官方版本号的形式
99
103
# ## 🎉 贡献说明
100
104
如果你想为本项目做出贡献,请遵守以下规则:
101
105
* 所有请求请提交到dev分支,提交到main分支将会被关闭
102
- * 每条 commit 请认真填写信息,最好使用[gitmoji](https://gitmoji.dev)规范
106
+ * 每条 commit 请认真填写信息,最好使用 [gitmoji](https://gitmoji.dev) 规范
107
+
108
+ # ## ❔️ 常见问题
109
+ 1. 为什么我到1000左右连接数就无法继续提供服务?
110
+ * Swoole默认Http服务器连接数是根据 ` ulimit -n` 来设定的,如果连接数过小建议自行调整 ulimit
111
+
112
+ 2. 我不想安装PHP环境怎么办?
113
+ * 你可以使用 [static-php-cli](https://github.com/crazywhalecc/static-php-cli) 或者等我打包出 phar 文件后封装成二进制程序(TODO)
114
+
115
+ 3. 为什么不支持多 Webdav /存储?
116
+ * 因为我跟随 Node 版,以 Node 版为规范,并且 BangBang93 一向反对单节点多存储,所以不考虑支持
117
+
118
+ 4. 为什么会出现一些奇奇怪怪的故障?
119
+ * 请提交 issues 进一步解决
103
120
104
121
# # 📖 许可证
105
122
项目采用 ` Apache-2.0 license` 协议开源
0 commit comments