Skip to content

Commit 2c92b3f

Browse files
authored
Merge pull request #39 from huangzhhui/release-v0.2.0
Update version number to v0.2.0
2 parents d1c383f + 89a2f8f commit 2c92b3f

3 files changed

Lines changed: 13 additions & 9 deletions

File tree

README-CN.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ Box 致力于帮助提升 Hyperf 应用程序的编程体验,管理 PHP 环境
99
您可以从该项目的 Github Actions 附件中下载最新构建的 `box` 二进制文件。
1010
点击 [这里](https://github.com/hyperf/box/actions) 下载 ~
1111

12-
请注意 box **仅支持 Swow**, 暂 **不支持** Swoole,故你的项目骨架应由 [hyperf/swow-skeleton](https://github.com/hyperf/swow-skeleton) 项目创建或其它 Swow 骨架创建。
12+
请注意 box 内的 `php` **仅支持 Swow**, 暂 **不支持** Swoole,故你的项目骨架应由 [hyperf/swow-skeleton](https://github.com/hyperf/swow-skeleton) 项目创建或其它 Swow 骨架创建。
13+
如果要使用 Swoole,请使用 `swoole-cli` 代替 `php` 命令,同时其他 PHP 代理命令将无效。
14+
提示:运行 `box get swoole-cli` 可获取最新版本的 swoole-cli。
1315

1416
### 使用
1517

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

2022
```bash
21-
wget https://github.com/hyperf/box/releases/download/v0.1.0/box_x86_64_macos -O box
23+
wget https://github.com/hyperf/box/releases/download/v0.2.0/box_x86_64_macos -O box
2224
sudo mv ./box /usr/local/bin/box
2325
sudo chmod 755 /usr/local/bin/box
2426
// 确保 /usr/local/bin/box 在你的 $PATH 环境中,或者将 `box` 放到你想要的任意 $PATH 路径中
@@ -27,7 +29,7 @@ sudo chmod 755 /usr/local/bin/box
2729
##### Linux x86_64
2830

2931
```bash
30-
wget https://github.com/hyperf/box/releases/download/v0.1.0/box_x86_64_linux -O box
32+
wget https://github.com/hyperf/box/releases/download/v0.2.0/box_x86_64_linux -O box
3133
sudo mv ./box /usr/local/bin/box
3234
sudo chmod 755 /usr/local/bin/box
3335
// 确保 /usr/local/bin/box 在你的 $PATH 环境中,或者将 `box` 放到你想要的任意 $PATH 路径中
@@ -65,7 +67,7 @@ Box 需要一个 Github 访问令牌来请求 Github API,以检索包的版本
6567
- `box config get-php-version <version>`获取 box 的当前设置的 PHP 版本
6668
- `box reverse-proxy -u <upsteamHost:upstreamPort>` 启动一个反向代理 HTTP 服务器,用于将 HTTP 请求转发到指定的多个上游服务器
6769
- `box php <argument>` 通过当前 box 的 PHP 版本运行任何 PHP 命令
68-
- `box swoole-cli <argument>` 通过 swoole-cli 运行任何命令,此命令仅在 box v0.1.1 及以上的版本中可用
70+
- `box swoole-cli <argument>` 通过 swoole-cli 运行任何命令,此命令仅在 box v0.2.0 及以上的版本中可用
6971
- `box composer <argument>`通过当前 box 的 PHP 版本运行任何 Composer 命令,composer bin 的版本取决于最后执行的`get composer`命令
7072
- `box php-cs-fixer <argument>` 通过当前 box 的 PHP 版本运行任何 `php-cs-fixer` 命令,composer bin 的版本取决于最后执行的 `get php-cs-fixer` 命令
7173
- `box cs-fix <argument>` 通过当前 box 的 PHP 版本运行 `php-cs-fixer fix` 命令,composer bin 的版本取决于最后执行的 `get php-cs-fixer` 命令

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ Box is committed to helping improve the programming experience of Hyperf applica
99
You could download the latest builded `box` binary file from Github Actions artifact of this project.
1010
Click [here](https://github.com/hyperf/box/actions) to download ~
1111

12-
Please notice that box **ONLY** supports for **Swow**, but **NOT** Swoole, so your Hyperf application should created by [hyperf/swow-skeleton](https://github.com/hyperf/swow-skeleton) or other else swow skeleton.
12+
Please notice that the `php` which in box **ONLY** supports for **Swow**, but **NOT** Swoole, so your Hyperf application should created by [hyperf/swow-skeleton](https://github.com/hyperf/swow-skeleton) or other else swow skeleton.
13+
If you want to use Swoole, please use `swoole-cli` instead of `php` command, also the other PHP proxy commands are invalid.
14+
Tips: run `box get swoole-cli` to get the latest version swoole-cli..
1315

1416
### Usage
1517

@@ -18,7 +20,7 @@ Please notice that box **ONLY** supports for **Swow**, but **NOT** Swoole, so yo
1820
##### Mac
1921

2022
```bash
21-
wget https://github.com/hyperf/box/releases/download/v0.1.0/box_x86_64_macos -O box
23+
wget https://github.com/hyperf/box/releases/download/v0.2.0/box_x86_64_macos -O box
2224
sudo mv ./box /usr/local/bin/box
2325
sudo chmod 755 /usr/local/bin/box
2426
// Make sure /usr/local/bin/box in your $PATH env, or put `box` into any path in $PATH env that you want
@@ -27,7 +29,7 @@ sudo chmod 755 /usr/local/bin/box
2729
##### Linux x86_64
2830

2931
```bash
30-
wget https://github.com/hyperf/box/releases/download/v0.1.0/box_x86_64_linux -O box
32+
wget https://github.com/hyperf/box/releases/download/v0.2.0/box_x86_64_linux -O box
3133
sudo mv ./box /usr/local/bin/box
3234
sudo chmod 755 /usr/local/bin/box
3335
// Make sure /usr/local/bin/box in your $PATH env, or put `box` into any path in $PATH env that you want
@@ -65,7 +67,7 @@ Box needs a Github Access Token to request github api, to retrieve the versions
6567
- `box config get-php-version <version>` to get the current PHP version of box
6668
- `box reverse-proxy -u <upsteamHost:upstreamPort>` to start a reverse proxy HTTP server for the upstream servers
6769
- `box php <argument>` to run any PHP command via current PHP version of box
68-
- `box swoole-cli <argument>` to run any command via swoole-cli, since box v0.1.1
70+
- `box swoole-cli <argument>` to run any command via swoole-cli, since box v0.2.0
6971
- `box composer <argument>` to run any Composer command via box, the version of the composer bin depends on the last executed `get composer` command
7072
- `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
7173
- `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.1.0';
17+
public const VERSION = '0.2.0';
1818
}

0 commit comments

Comments
 (0)