Skip to content

Commit

Permalink
Merge pull request #43 from huangzhhui/release-v0.3.0
Browse files Browse the repository at this point in the history
Release v0.3.0
  • Loading branch information
huangzhhui authored Oct 5, 2022
2 parents 212408d + 35ae39f commit 4d59cb8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 13 deletions.
8 changes: 3 additions & 5 deletions README-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ Box 致力于帮助提升 Hyperf 应用程序的编程体验,管理 PHP 环境

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

您可以从该项目的 Github Actions 附件中下载最新构建的 `box` 二进制文件。
点击 [这里](https://github.com/hyperf/box/actions) 下载 ~

请注意 box 内的 `php` **仅支持 Swow**, 暂 **不支持** Swoole,故你的项目骨架应由 [hyperf/swow-skeleton](https://github.com/hyperf/swow-skeleton) 项目创建或其它 Swow 骨架创建。
如果要使用 Swoole,请使用 `swoole-cli` 代替 `php` 命令,同时其他 PHP 代理命令将无效。
提示:运行 `box get swoole-cli` 可获取最新版本的 swoole-cli。
Expand All @@ -20,7 +17,7 @@ Box 致力于帮助提升 Hyperf 应用程序的编程体验,管理 PHP 环境
##### Mac

```bash
wget https://github.com/hyperf/box/releases/download/v0.2.0/box_x86_64_macos -O box
wget https://github.com/hyperf/box/releases/download/v0.3.0/box_x86_64_macos -O box
sudo mv ./box /usr/local/bin/box
sudo chmod 755 /usr/local/bin/box
// 确保 /usr/local/bin/box 在你的 $PATH 环境中,或者将 `box` 放到你想要的任意 $PATH 路径中
Expand All @@ -29,7 +26,7 @@ sudo chmod 755 /usr/local/bin/box
##### Linux x86_64

```bash
wget https://github.com/hyperf/box/releases/download/v0.2.0/box_x86_64_linux -O box
wget https://github.com/hyperf/box/releases/download/v0.3.0/box_x86_64_linux -O box
sudo mv ./box /usr/local/bin/box
sudo chmod 755 /usr/local/bin/box
// 确保 /usr/local/bin/box 在你的 $PATH 环境中,或者将 `box` 放到你想要的任意 $PATH 路径中
Expand Down Expand Up @@ -72,4 +69,5 @@ Box 需要一个 Github 访问令牌来请求 Github API,以检索包的版本
- `box php-cs-fixer <argument>` 通过当前 box 的 PHP 版本运行任何 `php-cs-fixer` 命令,composer bin 的版本取决于最后执行的 `get php-cs-fixer` 命令
- `box cs-fix <argument>` 通过当前 box 的 PHP 版本运行 `php-cs-fixer fix` 命令,composer bin 的版本取决于最后执行的 `get php-cs-fixer` 命令
- `box phpstan <argument>` 通过当前 box 的 PHP 版本运行任何 `phpstan` 命令,composer bin 的版本取决于最后执行的 `get phpstan` 命令,此命令仅在 box v0.3.0 及以上的版本中可用
- `box pint <argument>` 通过当前 box 的 PHP 版本运行任何 `pint` 命令,composer bin 的版本取决于最后执行的 `get pint` 命令,此命令仅在 box v0.3.0 及以上的版本中可用
- `box version` 输出当前 box bin 的版本号
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ Box is committed to helping improve the programming experience of Hyperf applica

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

You could download the latest builded `box` binary file from Github Actions artifact of this project.
Click [here](https://github.com/hyperf/box/actions) to download ~

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.
If you want to use Swoole, please use `swoole-cli` instead of `php` command, also the other PHP proxy commands are invalid.
Tips: run `box get swoole-cli` to get the latest version swoole-cli..
Expand All @@ -20,7 +17,7 @@ Tips: run `box get swoole-cli` to get the latest version swoole-cli..
##### Mac

```bash
wget https://github.com/hyperf/box/releases/download/v0.2.0/box_x86_64_macos -O box
wget https://github.com/hyperf/box/releases/download/v0.3.0/box_x86_64_macos -O box
sudo mv ./box /usr/local/bin/box
sudo chmod 755 /usr/local/bin/box
// Make sure /usr/local/bin/box in your $PATH env, or put `box` into any path in $PATH env that you want
Expand All @@ -29,7 +26,7 @@ sudo chmod 755 /usr/local/bin/box
##### Linux x86_64

```bash
wget https://github.com/hyperf/box/releases/download/v0.2.0/box_x86_64_linux -O box
wget https://github.com/hyperf/box/releases/download/v0.3.0/box_x86_64_linux -O box
sudo mv ./box /usr/local/bin/box
sudo chmod 755 /usr/local/bin/box
// Make sure /usr/local/bin/box in your $PATH env, or put `box` into any path in $PATH env that you want
Expand Down Expand Up @@ -69,7 +66,8 @@ Box needs a Github Access Token to request github api, to retrieve the versions
- `box php <argument>` to run any PHP command via current PHP version of box
- `box swoole-cli <argument>` to run any command via swoole-cli, since box v0.2.0
- `box composer <argument>` to run any Composer command via box, the version of the composer bin depends on the last executed `get composer` command
- `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
- `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
- `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
- `box phpstan <argument>` to run any phpstan command via box, the version of the composer bin depends on the last executed `get phpstan` command, since box v0.3.0
- `box phpstan <argument>` to run any `phpstan` command via box, the version of the composer bin depends on the last executed `get phpstan` command, since box v0.3.0
- `box pint <argument>` to run any `pint` command via box, the version of the composer bin depends on the last executed `get pint` command, since box v0.3.0
- `box version` to dump the current version of the box bin
2 changes: 1 addition & 1 deletion src/app/Box.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@

class Box
{
public const VERSION = '0.2.0';
public const VERSION = '0.3.0';
}

0 comments on commit 4d59cb8

Please sign in to comment.