WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 8a5f203

Browse files
authored
Merge pull request #51 from huangzhhui/release-v0.5.0
Release v0.5.0
2 parents f4a0365 + da12a9f commit 8a5f203

File tree

3 files changed

+25
-13
lines changed

3 files changed

+25
-13
lines changed

README-CN.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# box, by Hyperf
44

5-
Box 致力于帮助提升 Hyperf 应用程序的编程体验,管理 PHP 环境和相关依赖,同时提供将 Hyperf 应用程序打包为二进制程序的能力,还提供反向代理服务来管理和部署 Hyperf 应用程序
5+
Box 致力于帮助提升 PHP 应用程序的编程体验,尤其有助于 Hyperf 应用,管理 PHP 环境和相关依赖,同时提供将 PHP 应用程序打包为二进制程序的能力,还提供反向代理服务来管理和部署 Swoole/Swow 服务
66

77
## 目前还是早期实验版本,欢迎试玩 ~
88

@@ -13,7 +13,7 @@ Box 致力于帮助提升 Hyperf 应用程序的编程体验,管理 PHP 环境
1313
##### Mac
1414

1515
```bash
16-
wget https://github.com/hyperf/box/releases/download/v0.4.0/box_x86_64_macos -O box
16+
wget https://github.com/hyperf/box/releases/download/v0.5.0/box_x86_64_macos -O box
1717
sudo mv ./box /usr/local/bin/box
1818
sudo chmod 755 /usr/local/bin/box
1919
// 确保 /usr/local/bin/box 在你的 $PATH 环境中,或者将 `box` 放到你想要的任意 $PATH 路径中
@@ -22,7 +22,7 @@ sudo chmod 755 /usr/local/bin/box
2222
##### Linux x86_64
2323

2424
```bash
25-
wget https://github.com/hyperf/box/releases/download/v0.4.0/box_x86_64_linux -O box
25+
wget https://github.com/hyperf/box/releases/download/v0.5.0/box_x86_64_linux -O box
2626
sudo mv ./box /usr/local/bin/box
2727
sudo chmod 755 /usr/local/bin/box
2828
// 确保 /usr/local/bin/box 在你的 $PATH 环境中,或者将 `box` 放到你想要的任意 $PATH 路径中
@@ -38,6 +38,13 @@ sudo chmod 755 /usr/local/bin/box
3838
// 确保 /usr/local/bin/box 在你的 $PATH 环境中,或者将 `box` 放到你想要的任意 $PATH 路径中
3939
```
4040

41+
##### Windows
42+
43+
```powershell
44+
curl -o box.exe https://github.com/hyperf/box/releases/download/v0.5.0/box_x64_windows.exe
45+
// 将 `box.exe` 放到你想要的任意 Path 环境变量路径中,同时 Windows 版本在执行时需要在命令行中使用 `box.exe` 而不是 `box`
46+
```
47+
4148
#### 初始化 Github Access Token
4249

4350
Box 需要一个 Github 访问令牌来请求 Github API,以检索包的版本。
@@ -48,13 +55,13 @@ Box 需要一个 Github 访问令牌来请求 Github API,以检索包的版本
4855

4956
#### 设置 Box Kernel
5057

51-
默认情况下,Box 由 Swow Kernel 提供支持,但是我们也提供了 Swoole Kernel,您可以通过 `box config set kernel swoole` 来切换为 Swoole Kernel,但是需要注意的是,Swoole Kernel 仅支持 PHP 8.1 版本,且不支持构建二进制程序功能
58+
默认情况下,Box 由 Swow Kernel 提供支持,但是我们也提供了 Swoole Kernel,您可以通过 `box config set kernel swoole` 来切换为 Swoole Kernel,但是需要注意的是,Swoole Kernel 仅支持 PHP 8.1 版本,且不支持构建二进制程序功能和 Windows 系统环境
5259

5360
```bash
5461
// 设置为 Swow Kernel [默认]
5562
box config set kernel swow
5663

57-
// 设置为 Swoole Kernel
64+
// 设置为 Swoole Kernel (不支持 Windows)
5865
box config set kernel swoole
5966
```
6067

@@ -73,7 +80,6 @@ box config set kernel swoole
7380
- `box config get-php-version <version>`获取 box 的当前设置的 PHP 版本
7481
- `box reverse-proxy -u <upsteamHost:upstreamPort>` 启动一个反向代理 HTTP 服务器,用于将 HTTP 请求转发到指定的多个上游服务器
7582
- `box php <argument>` 通过当前 box 的 PHP 版本运行任何 PHP 命令
76-
- `box swoole-cli <argument>` 通过 swoole-cli 运行任何命令,此命令仅在 box v0.2.0 及以上的版本中可用
7783
- `box composer <argument>`通过当前 box 的 PHP 版本运行任何 Composer 命令,composer bin 的版本取决于最后执行的`get composer`命令
7884
- `box php-cs-fixer <argument>` 通过当前 box 的 PHP 版本运行任何 `php-cs-fixer` 命令,composer bin 的版本取决于最后执行的 `get php-cs-fixer` 命令
7985
- `box cs-fix <argument>` 通过当前 box 的 PHP 版本运行 `php-cs-fixer fix` 命令,composer bin 的版本取决于最后执行的 `get php-cs-fixer` 命令

README.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ English | [中文](./README-CN.md)
22

33
# box, by Hyperf
44

5-
Box is committed to helping improve the programming experience of Hyperf applications, managing the PHP environment and related dependencies, providing the ability to package Hyperf applications as binary programs, and also providing reverse proxy services for managing and deploying Hyperf applications.
5+
Box is committed to helping improve the programming experience of PHP applications, expecially for Hyperf, managing the PHP environment and related dependencies, providing the ability to package PHP applications as binary programs, and also providing reverse proxy services for managing and deploying Swoole/Swow applications.
66

77
## This is still an early experimental version, have fun ~
88

@@ -13,7 +13,7 @@ Box is committed to helping improve the programming experience of Hyperf applica
1313
##### Mac
1414

1515
```bash
16-
wget https://github.com/hyperf/box/releases/download/v0.4.0/box_x86_64_macos -O box
16+
wget https://github.com/hyperf/box/releases/download/v0.5.0/box_x86_64_macos -O box
1717
sudo mv ./box /usr/local/bin/box
1818
sudo chmod 755 /usr/local/bin/box
1919
// Make sure /usr/local/bin/box in your $PATH env, or put `box` into any path in $PATH env that you want
@@ -22,7 +22,7 @@ sudo chmod 755 /usr/local/bin/box
2222
##### Linux x86_64
2323

2424
```bash
25-
wget https://github.com/hyperf/box/releases/download/v0.4.0/box_x86_64_linux -O box
25+
wget https://github.com/hyperf/box/releases/download/v0.5.0/box_x86_64_linux -O box
2626
sudo mv ./box /usr/local/bin/box
2727
sudo chmod 755 /usr/local/bin/box
2828
// Make sure /usr/local/bin/box in your $PATH env, or put `box` into any path in $PATH env that you want
@@ -38,6 +38,13 @@ sudo chmod 755 /usr/local/bin/box
3838
// Make sure /usr/local/bin/box in your $PATH env, or put `box` into any path in $PATH env that you want
3939
```
4040

41+
##### Windows
42+
43+
```powershell
44+
curl -o box.exe https://github.com/hyperf/box/releases/download/v0.5.0/box_x64_windows.exe
45+
// Put `box.exe` into any path in $PATH env that you want, and use `box.exe` instead of `box` when executing on Windows
46+
```
47+
4148
#### Init Github Access Token
4249

4350
Box needs a Github Access Token to request github api, to retrieve the versions of the package.
@@ -48,13 +55,13 @@ Box needs a Github Access Token to request github api, to retrieve the versions
4855

4956
#### Setting the Box Kernel
5057

51-
By default, Box is supported by Swow Kernel, but we also provide Swoole Kernel, you can switch to Swoole Kernel by `box config set kernel swoole`, but it should be noted that Swoole Kernel only supports PHP 8.1 version, and The Build Binaries feature is not supported.
58+
By default, Box is supported by Swow Kernel, but we also provide Swoole Kernel, you can switch to Swoole Kernel by `box config set kernel swoole`, but it should be noted that Swoole Kernel only supports PHP 8.1 version, and The Build Binaries feature and Windows Systems are not supported.
5259

5360
```bash
5461
// set to Swow Kernel [default]
5562
box config set kernel swow
5663

57-
// set to Swoole Kernel
64+
// set to Swoole Kernel (NOT supported on Windows)
5865
box config set kernel swoole
5966
````
6067

@@ -73,7 +80,6 @@ box config set kernel swoole
7380
- `box config get-php-version <version>` to get the current PHP version of box
7481
- `box reverse-proxy -u <upsteamHost:upstreamPort>` to start a reverse proxy HTTP server for the upstream servers
7582
- `box php <argument>` to run any PHP command via current PHP version of box
76-
- `box swoole-cli <argument>` to run any command via swoole-cli, since box v0.2.0
7783
- `box composer <argument>` to run any Composer command via box, the version of the composer bin depends on the last executed `get composer` command
7884
- `box php-cs-fixer <argument>` to run any `php-cs-fixer` command via box, the version of the composer bin depends on the last executed `get php-cs-fixer` command
7985
- `box cs-fix <argument>` to run `php-cs-fix fix` command via box, the version of the composer bin depends on the last executed `get php-cs-fixer` command

src/app/Box.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414

1515
class Box
1616
{
17-
public const VERSION = '0.4.0';
17+
public const VERSION = '0.5.0';
1818
}

0 commit comments

Comments
 (0)