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
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-6Lines changed: 12 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@ English | [中文](./README-CN.md)
2
2
3
3
# box, by Hyperf
4
4
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.
6
6
7
7
## This is still an early experimental version, have fun ~
8
8
@@ -13,7 +13,7 @@ Box is committed to helping improve the programming experience of Hyperf applica
// 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
+
41
48
#### Init Github Access Token
42
49
43
50
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
48
55
49
56
#### Setting the Box Kernel
50
57
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.
52
59
53
60
```bash
54
61
// set to Swow Kernel [default]
55
62
box config set kernel swow
56
63
57
-
// set to Swoole Kernel
64
+
// set to Swoole Kernel (NOT supported on Windows)
58
65
box config set kernel swoole
59
66
````
60
67
@@ -73,7 +80,6 @@ box config set kernel swoole
73
80
- `box config get-php-version <version>` to get the current PHP version of box
74
81
- `box reverse-proxy -u <upsteamHost:upstreamPort>` to start a reverse proxy HTTP server for the upstream servers
75
82
- `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
77
83
- `box composer <argument>` to run any Composer command via box, the version of the composer bin depends on the last executed `get composer`command
78
84
- `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
79
85
- `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
0 commit comments