Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

Commit 77a8132

Browse files
authored
Merge branch 'main' into dev
2 parents f98fd09 + d165d10 commit 77a8132

File tree

2 files changed

+34
-17
lines changed

2 files changed

+34
-17
lines changed

README.md

Lines changed: 33 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,34 @@
11
<div align="center">
22

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)
64

75
# OpenBMCLAPI for PHP
86

97
✨ 一个基于PHP以及 [Swoole](https://www.swoole.com/)[OpenBMCLAPI](https://github.com/bangbang93/openbmclapi) 节点端 ✨
108

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)
1712

18-
</div>
1913

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>
2120

2221
## ⚙️ 部署
2322

2423
### 源码部署
2524

2625
#### 环境要求
2726

28-
建议 PHP 版本 >= 8.0.0
27+
PHP 版本 >= 8.0.0
28+
29+
[Swoole](https://www.swoole.com/) 版本 >= 5.1.
2930

30-
以及对应版本的 [Swoole](https://www.swoole.com/)[Zstd](https://github.com/kjdev/php-ext-zstd) 扩展库
31+
以及对应版本的 [Zstd](https://github.com/kjdev/php-ext-zstd)
3132

3233
#### 开始部署
3334

@@ -65,6 +66,7 @@ $config=[
6566
"public_port"=> 4000,//服务端口
6667
"CLUSTER_ID"=> "",
6768
"CLUSTER_SECRET"=> "",
69+
"byoc"=>false,
6870
],
6971
"file"=> [
7072
"cache_dir"=> "./cache",//缓存文件夹
@@ -79,10 +81,12 @@ $config=[
7981
```
8082

8183
## 📍 Todo
82-
- [x] 可以正常上线使用(主要)
84+
- [ ] Web仪表盘(主要)
85+
- [ ] 支持WebDAV
86+
- [ ] 打包二进制文件
8387
- [ ] 完善Log系统
8488
- [ ] 添加注释
85-
- [ ] Web仪表盘
89+
- [x] 可以正常上线使用
8690

8791
## ❓ FAQ
8892

@@ -99,7 +103,20 @@ PHPOpenBmclApi 采用独立版本号+官方版本号的形式
99103
### 🎉 贡献说明
100104
如果你想为本项目做出贡献,请遵守以下规则:
101105
* 所有请求请提交到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 进一步解决
103120

104121
## 📖 许可证
105122
项目采用 `Apache-2.0 license` 协议开源

main.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
date_default_timezone_set('Asia/Shanghai');
77
require './config.php';
88
const PHPOBAVERSION = '1.5.0';
9-
const VERSION = '1.10.4';
9+
const VERSION = '1.10.5';
1010
global $DOWNLOAD_DIR;
1111
$DOWNLOAD_DIR = $config['file']['cache_dir'];
1212
const USERAGENT = 'openbmclapi-cluster/' . VERSION . ' ' . 'PHP-OpenBmclApi/'.PHPOBAVERSION;

0 commit comments

Comments
 (0)