mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-07 16:55:38 +08:00
Update CLI documentation for clarity and accuracy
This commit is contained in:
@@ -405,9 +405,6 @@ spc install-pkg <package> [options]
|
||||
```bash
|
||||
# 安装 UPX 压缩工具
|
||||
spc install-pkg upx
|
||||
|
||||
# 安装时优先使用预编译二进制(默认行为)
|
||||
spc install-pkg upx
|
||||
```
|
||||
|
||||
## micro:combine
|
||||
|
||||
@@ -8,7 +8,7 @@ aside: false
|
||||
|
||||
- **必需依赖**:构建该包时会强制一同构建的包。
|
||||
- **可选依赖**:默认不构建,使用 `--with-suggests` 参数可启用,或在构建命令中手动指定。
|
||||
- **被依赖**:其他哪些包需要当前包。
|
||||
- **被依赖 / 被建议**:其他哪些包将当前包作为必需或可选依赖。
|
||||
|
||||
运行以下命令生成依赖数据(需要在源码模式下):
|
||||
|
||||
|
||||
@@ -90,7 +90,7 @@ bin/spc build gd --with-libs=freetype,libjpeg,libavif,libwebp --build-cli
|
||||
|
||||
## xml
|
||||
|
||||
1. xml 包括 xmlreader、xmlwriter、dom、simplexml 等,添加 xml 扩展时最好同时启用这些扩展。
|
||||
1. xml 包括 xmlreader、xmlwriter、xsl、dom、simplexml 等,添加 xml 扩展时最好同时启用这些扩展。
|
||||
2. libxml 包含在 xml 扩展中。启用 xml 相当于启用 libxml。
|
||||
|
||||
## glfw
|
||||
|
||||
@@ -51,7 +51,7 @@ chmod +x spc && ./spc --version
|
||||
适合想参与开发、或需要修改核心注册表和构建脚本的开发者。需要系统已安装 PHP >= 8.4、Composer,以及 `mbstring,posix,pcntl,iconv,phar,zlib` 扩展。
|
||||
|
||||
```bash
|
||||
git clone https://github.com/static-php/static-php.git --branch v3
|
||||
git clone https://github.com/crazywhalecc/static-php-cli.git --branch v3
|
||||
cd static-php-cli
|
||||
composer install
|
||||
```
|
||||
@@ -100,9 +100,15 @@ Vendor 模式的详细用法见 [扩展 StaticPHP](../develop/extending/)。
|
||||
|
||||
```bash
|
||||
# 使用 spc 二进制
|
||||
./spc doctor --auto-fix
|
||||
./spc doctor
|
||||
# 使用源码安装
|
||||
bin/spc doctor --auto-fix
|
||||
bin/spc doctor
|
||||
```
|
||||
|
||||
如有缺失,`--auto-fix` 会尝试自动安装修复:
|
||||
|
||||
```bash
|
||||
./spc doctor --auto-fix
|
||||
```
|
||||
|
||||
检查通过后,继续阅读[第一次构建](./first-build)。
|
||||
|
||||
Reference in New Issue
Block a user