Compare commits

...

3 Commits

Author SHA1 Message Date
Jerry Ma
74a34362c3
Update README-en.md 2023-06-02 23:42:23 +08:00
Jerry Ma
0e33380df5
Update README-en.md 2023-06-02 23:40:49 +08:00
Jerry Ma
3db9c70e1b
Update README.md 2023-06-02 23:39:01 +08:00
2 changed files with 5 additions and 3 deletions

View File

@ -76,13 +76,15 @@ Clone repo first:
git clone https://github.com/crazywhalecc/static-php-cli.git
```
If you have not installed php on your system, you can download single-file php binary and composer first.
If you have not installed php on your system, you can use package management to install PHP (such as brew, apt, yum, apk etc.).
And you can also download single-file php binary and composer using command `bin/setup-runtime`.
The PHP runtime for static-php-cli itself will be downloaded at `bin/php`, and composer is at `bin/composer`.
```bash
cd static-php-cli
chmod +x bin/setup-runtime
# It will download php-cli from self-hosted server and composer from getcomposer.org
./bin/setup-runtime
# Use this php runtime to run static-php-cli compiler

View File

@ -71,9 +71,9 @@ If you are using English, see [English README](README-en.md).
git clone https://github.com/crazywhalecc/static-php-cli.git
```
如果你本机没有安装 PHP可以通过命令下载静态编译好的 php-cli 和 Composer
如果你本机没有安装 PHP需要先使用包管理(例如 brew、apt、yum、apk 等)安装 php
下载的 php 和 Composer 将保存为 `bin/php``bin/composer`
你也可以通过 `bin/setup-runtime` 命令下载静态编译好的 php-cli 和 Composer。下载的 php 和 Composer 将保存为 `bin/php``bin/composer`
```bash
cd static-php-cli