mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
Update README.md
This commit is contained in:
parent
5e2b104d58
commit
0bc5dd7fc0
@ -2,7 +2,7 @@
|
|||||||
Compile A Statically Linked PHP With Swoole and other Extensions
|
Compile A Statically Linked PHP With Swoole and other Extensions
|
||||||
编译纯静态的 PHP Binary 二进制文件,带有各种扩展(CLI 模式,暂不支持 CGI 和 FPM 模式)
|
编译纯静态的 PHP Binary 二进制文件,带有各种扩展(CLI 模式,暂不支持 CGI 和 FPM 模式)
|
||||||
|
|
||||||
[]()
|
[]()
|
||||||
|
|
||||||
## 环境需求
|
## 环境需求
|
||||||
- 目前在 x86_64 平台试验成功,其他架构需自行测试
|
- 目前在 x86_64 平台试验成功,其他架构需自行测试
|
||||||
@ -10,14 +10,15 @@ Compile A Statically Linked PHP With Swoole and other Extensions
|
|||||||
- WSL2 也是支持的
|
- WSL2 也是支持的
|
||||||
|
|
||||||
## 开始
|
## 开始
|
||||||
可以直接带走此仓库中的编译好的二进制(`./php`),版本 7.4.16(swoole 版本 4.6.6)。
|
可以直接在旁边的 Release 中下载编译好的二进制,也可以自己编译。
|
||||||
```bash
|
```bash
|
||||||
# 自己编译
|
# 自己编译
|
||||||
./static-compile-php.sh
|
./static-compile-php.sh
|
||||||
```
|
|
||||||
完事后在 `php-dist/bin/php` 这个二进制文件可以随意拿着去任何一个 Linux 系统运行了!
|
完事后在 `php-dist/bin/php` 这个二进制文件可以随意拿着去任何一个 Linux 系统运行了!
|
||||||
|
```
|
||||||
|
|
||||||
## 包含扩展
|
## 包含扩展
|
||||||
|
- bcmath
|
||||||
- calendar
|
- calendar
|
||||||
- ctype
|
- ctype
|
||||||
- filter
|
- filter
|
||||||
@ -27,6 +28,7 @@ Compile A Statically Linked PHP With Swoole and other Extensions
|
|||||||
- json
|
- json
|
||||||
- mbstring
|
- mbstring
|
||||||
- phar
|
- phar
|
||||||
|
- curl
|
||||||
- pdo
|
- pdo
|
||||||
- gd
|
- gd
|
||||||
- pdo_mysql
|
- pdo_mysql
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user