Skip to content
This repository was archived by the owner on Jul 1, 2024. It is now read-only.

Commit dc6f04b

Browse files
committed
1 parent 7b6de0b commit dc6f04b

File tree

7 files changed

+13
-3
lines changed

7 files changed

+13
-3
lines changed

docs/en/guide/extensions.md

+3
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ You can use `--with-libs=` to add these libraries when compiling.
1919
When the dependent libraries of this compilation include them, gd will automatically use them to enable these features.
2020
(For example: `bin/spc build gd --with-libs=libwebp,freetype --build-cli`)
2121

22+
Alternatively you can use `--with-suggested-exts` and `--with-suggested-libs` to enable all optional dependencies of these extensions and libraries.
23+
(For example: `bin/spc build gd --with-suggested-libs --build-cli`)
24+
2225
If you don't know whether an extension has optional features,
2326
you can check the [spc configuration file](https://github.com/crazywhalecc/static-php-cli/tree/main/config)
2427
or use the command `bin/spc dev:extensions` (library dependency is `lib-suggests`, extension dependency is `ext-suggests`).

docs/en/guide/manual-build.md

+2
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,8 @@ You can try to use the following commands:
233233
- `--disable-opcache-jit`: Disable opcache jit (enabled by default)
234234
- `-P xxx.php`: Inject external scripts during static-php-cli compilation (see **Inject external scripts** below for details)
235235
- `--without-micro-ext-test`: After building micro.sfx, do not test the running results of different extensions in micro.sfx
236+
- `--with-suggested-exts`: Add `ext-suggests` as dependencies when compiling
237+
- `--with-suggested-libs`: Add `lib-suggests` as dependencies when compiling
236238

237239
For hardcoding INI options, it works for cli, micro, embed sapi. Here is a simple example where we preset a larger `memory_limit` and disable the `system` function:
238240

docs/en/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ layout: home
44

55
hero:
66
name: "static-php-cli"
7-
tagline: "Build standalone PHP binary on Linux, macOS, FreeBSD, with PHP project together, with popular extensions included."
7+
tagline: "Build standalone PHP binary on Linux, macOS, FreeBSD, Windows, with PHP project together, with popular extensions included."
88
actions:
99
- theme: brand
1010
text: Guide

docs/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ layout: home
44

55
hero:
66
name: "static-php-cli"
7-
tagline: "Build standalone PHP binary on Linux, macOS, FreeBSD, with PHP project together, with popular extensions included."
7+
tagline: "Build standalone PHP binary on Linux, macOS, FreeBSD, Windows, with PHP project together, with popular extensions included."
88
actions:
99
- theme: brand
1010
text: Get Started

docs/zh/guide/extensions.md

+3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
你可以在编译时使用 `--with-libs=` 加入这些库,当本次编译的依赖库中包含它们,gd 会自动依赖它们启用这些特性。
1818
(如:`bin/spc build gd --with-libs=libwebp,freetype --build-cli`
1919

20+
或者你也可以使用 `--with-suggested-exts``--with-suggested-libs` 启用这些扩展和库所有可选的依赖。
21+
(如:`bin/spc build gd --with-suggested-libs --build-cli`
22+
2023
如果你不知道某个扩展是否有可选特性,可以通过查看 [spc 配置文件](https://github.com/crazywhalecc/static-php-cli/tree/main/config)
2124
或使用命令 `bin/spc dev:extensions` 查看(库依赖为 `lib-suggests`,扩展依赖为 `ext-suggests`)。
2225
:::

docs/zh/guide/manual-build.md

+2
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,8 @@ bin/spc build mysqlnd,pdo_mysql --build-all --debug
200200
- `--disable-opcache-jit`: 禁用 opcache jit(默认启用)
201201
- `-P xxx.php`: 在 static-php-cli 编译过程中注入外部脚本(详见下方 **注入外部脚本**
202202
- `--without-micro-ext-test`: 在构建 micro.sfx 后,禁用测试不同扩展在 micro.sfx 的运行结果
203+
- `--with-suggested-exts`: 编译时将 `ext-suggests` 也作为编译依赖加入
204+
- `--with-suggested-libs`: 编译时将 `lib-suggests` 也作为编译依赖加入
203205

204206
硬编码 INI 选项适用于 cli、micro、embed。有关硬编码 INI 选项,下面是一个简单的例子,我们预设一个更大的 `memory_limit`,并且禁用 `system` 函数:
205207

docs/zh/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ layout: home
44

55
hero:
66
name: "static-php-cli"
7-
tagline: "在 Linux、macOS、FreeBSD 上与 PHP 项目一起构建独立的 PHP 二进制文件,并包含流行的扩展。"
7+
tagline: "在 Linux、macOS、FreeBSD、Windows 上与 PHP 项目一起构建独立的 PHP 二进制文件,并包含流行的扩展。"
88
actions:
99
- theme: brand
1010
text: 指南

0 commit comments

Comments
 (0)