mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
Update README-en.md
This commit is contained in:
parent
67ae206b0e
commit
4cba2cb8c1
18
README-en.md
18
README-en.md
@ -14,7 +14,8 @@ BTW, It's only for CLI mode.
|
|||||||
## Running Requirements
|
## Running Requirements
|
||||||
Linux
|
Linux
|
||||||
|
|
||||||
## Start
|
## Usage
|
||||||
|
|
||||||
1. Directly download static binary from this link.
|
1. Directly download static binary from this link.
|
||||||
|
|
||||||
<https://dl.zhamao.xin/php-bin/file/>
|
<https://dl.zhamao.xin/php-bin/file/>
|
||||||
@ -27,7 +28,9 @@ But this script has some Chinese comments and prompts, if you cannot understand
|
|||||||
bash -c "`curl -fsSL https://raw.githubusercontent.com/crazywhalecc/static-php-cli/master/install-runtime.sh`"
|
bash -c "`curl -fsSL https://raw.githubusercontent.com/crazywhalecc/static-php-cli/master/install-runtime.sh`"
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Here's help command to compile it yourself:
|
## Compiling
|
||||||
|
|
||||||
|
Here's help command to compile it yourself:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/crazywhalecc/static-php-cli.git
|
git clone https://github.com/crazywhalecc/static-php-cli.git
|
||||||
@ -43,6 +46,17 @@ cd dist
|
|||||||
file ./php
|
file ./php
|
||||||
```
|
```
|
||||||
|
|
||||||
|
If you don't want to use docker, a single script for compiling:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cd docker
|
||||||
|
# Change PHP Version
|
||||||
|
export VER_PHP="8.1.6"
|
||||||
|
# Use Original download link (Default is China mainland mirror link, for others please use 'yes' for original link)
|
||||||
|
export USE_BACKUP="yes"
|
||||||
|
./fast-compiler.sh
|
||||||
|
```
|
||||||
|
|
||||||
To customize PHP extensions, edit `docker/extensions.txt` file, and rules below:
|
To customize PHP extensions, edit `docker/extensions.txt` file, and rules below:
|
||||||
- Use `#` as comment, to mark not install
|
- Use `#` as comment, to mark not install
|
||||||
- extensions name uses lower case, and default file contains all supported extensions, if u need other extensions, consider write an Issue
|
- extensions name uses lower case, and default file contains all supported extensions, if u need other extensions, consider write an Issue
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user