From 52a45f53dd96e0da5001d996bc7722b270b5d70d Mon Sep 17 00:00:00 2001 From: Whale Date: Mon, 26 Apr 2021 16:32:26 +0800 Subject: [PATCH] Update README.md --- README.md | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/README.md b/README.md index 7d75b248..0b361b46 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,42 @@ # static-php-swoole Compile A Statically Linked PHP With Swoole and other Extensions +编译纯静态的 PHP Binary 二进制文件,带有各种扩展(CLI 模式,暂不支持 CGI 和 FPM 模式) + +## 环境需求 +- 目前在 x86_64 平台试验成功,其他架构需自行测试 +- 需要 Alpine Linux(测试环境为 3.13 版本,其他版本未测试)系统(也就是说需要 musl) +- WSL2 也是支持的 + +## 开始 +```bash +./static-compile-php.sh +``` +完事后在 `php-dist/bin/php` 这个二进制文件可以随意拿着去任何一个 Linux 系统运行了! + +## 包含扩展 +- calendar +- ctype +- filter +- openssl +- pcntl +- iconv +- json +- mbstring +- phar +- pdo +- pdo_mysql +- mysqlnd +- sockets +- swoole +- redis +- simplexml +- dom +- xml +- xmlwriter +- xmlreader +- posix +- tokenizer + +## 运行示例 +在不同系统直接运行 Swoft +![image](https://user-images.githubusercontent.com/20330940/116053161-f16d7400-a6ac-11eb-87b8-e510c6454861.png)