update README

This commit is contained in:
crazywhalecc 2023-04-21 19:10:23 +08:00
parent 762f6043c5
commit fa437644f5
No known key found for this signature in database
GPG Key ID: 1F4BDD59391F2680
2 changed files with 6 additions and 6 deletions

View File

@ -7,8 +7,6 @@ Compile a purely static PHP binary file with various extensions to make PHP-cli
You can also use the micro binary file to package PHP source code and binary files into one for distribution!
This function is provided by [dixyes/phpmicro](https://github.com/dixyes/phpmicro).
Note: only support cli, not support fpm, cgi.
> This branch is new version, if you are looking for old bash version of static-php-cli, see [bash-version](https://github.com/crazywhalecc/static-php-cli/tree/bash-version).
[![Version](https://img.shields.io/badge/Version-2.0--beta1-green.svg?style=flat-square)]()
@ -117,7 +115,7 @@ echo "<?php echo 'Hello world' . PHP_EOL;" > code.php
cat micro.sfx code.php > single-app && chmod +x single-app
./single-app
# If packing a PHAR file, simply replace code.php with the Phar file path.
# If packing a PHAR file, replace code.php with the Phar file path.
```
> In some cases, PHAR files may not run in a micro environment.
@ -130,6 +128,7 @@ cat micro.sfx code.php > single-app && chmod +x single-app
- [X] Exception handler
- [ ] Windows support
- [X] PHP 7.4 support
- [ ] fpm support
More functions and features are coming soon, Bugs and TODOs: https://github.com/crazywhalecc/static-php-cli/issues/32

View File

@ -1,13 +1,13 @@
# static-php-cli
Compile A Statically Linked PHP With Swoole and other Extensions. [English README](README-en.md)
Compile A Statically Linked PHP With Swoole and other Extensions.
If you are using English, see [English README](README-en.md).
编译纯静态的 PHP Binary 二进制文件,带有各种扩展,让 PHP-cli 应用变得更便携!
同时可以使用 micro 二进制文件,将 PHP 源码和 PHP 二进制构建为一个文件分发!(由 [dixyes/phpmicro](https://github.com/dixyes/phpmicro) 提供支持)
注:只能编译 CLI 模式,暂不支持 CGI 和 FPM 模式。
> 此分支为重构的新版,如果你在找纯 Bash 编写的旧版本,请到 [bash-version 分支](https://github.com/crazywhalecc/static-php-cli/tree/bash-version)。
[![Version](https://img.shields.io/badge/Version-2.0--beta1-green.svg?style=flat-square)]()
@ -120,6 +120,7 @@ cat micro.sfx code.php > single-app && chmod +x single-app
- [ ] Windows 支持
- [X] Linux 支持
- [X] PHP 7.4 支持
- [ ] fpm 支持
更多功能和特性正在陆续支持中详见https://github.com/crazywhalecc/static-php-cli/issues/32