Skip to content

Commit 437d681

Browse files
committed
Bump version, update docs, change owner dunglas to php
1 parent 1357990 commit 437d681

File tree

7 files changed

+14
-6
lines changed

7 files changed

+14
-6
lines changed

README-zh.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ bin/spc micro:combine my-app.phar -I "memory_limit=4G" -I "disable_functions=sys
278278

279279
如果你知道 [embed SAPI](https://github.com/php/php-src/tree/master/sapi/embed),你应该知道如何使用它。对于有可能编译用到引入其他库的问题,你可以使用 `buildroot/bin/php-config` 来获取编译时的配置。
280280

281-
另外,有关如何使用此功能的高级示例,请查看[如何使用它构建 FrankenPHP 的静态版本](https://github.com/dunglas/frankenphp/blob/main/docs/static.md)
281+
另外,有关如何使用此功能的高级示例,请查看[如何使用它构建 FrankenPHP 的静态版本](https://github.com/php/frankenphp/blob/main/docs/static.md)
282282

283283
## 贡献
284284

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ If you know [embed SAPI](https://github.com/php/php-src/tree/master/sapi/embed),
302302
You may require the introduction of other libraries during compilation,
303303
you can use `buildroot/bin/php-config` to obtain the compile-time configuration.
304304

305-
For an advanced example of how to use this feature, take a look at [how to use it to build a static version of FrankenPHP](https://github.com/dunglas/frankenphp/blob/main/docs/static.md).
305+
For an advanced example of how to use this feature, take a look at [how to use it to build a static version of FrankenPHP](https://github.com/php/frankenphp/blob/main/docs/static.md).
306306

307307
## Contribution
308308

config/env.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ SPC_SKIP_PHP_VERSION_CHECK="no"
4343
; Ignore some check item for bin/spc doctor command, comma separated (e.g. SPC_SKIP_DOCTOR_CHECK_ITEMS="if homebrew has installed")
4444
SPC_SKIP_DOCTOR_CHECK_ITEMS=""
4545
; extra modules that xcaddy will include in the FrankenPHP build
46-
SPC_CMD_VAR_FRANKENPHP_XCADDY_MODULES="--with github.com/dunglas/frankenphp/caddy --with github.com/dunglas/mercure/caddy --with github.com/dunglas/vulcain/caddy --with github.com/dunglas/caddy-cbrotli"
46+
SPC_CMD_VAR_FRANKENPHP_XCADDY_MODULES="--with github.com/php/frankenphp/caddy --with github.com/dunglas/mercure/caddy --with github.com/dunglas/vulcain/caddy --with github.com/dunglas/caddy-cbrotli"
4747

4848
; EXTENSION_DIR where the built php will look for extension when a .ini instructs to load them
4949
; only useful for builds targeting not pure-static linking

docs/en/guide/manual-build.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ If the build is successful, you will see the `buildroot/bin` directory in the cu
167167
- fpm: The build result is `buildroot/bin/php-fpm`.
168168
- micro: The build result is `buildroot/bin/micro.sfx`. If you need to further package it with PHP code, please refer to [Packaging micro binary](./manual-build#command-micro-combine).
169169
- embed: See [Using embed](./manual-build#embed-usage).
170+
- frankenphp: The build result is `buildroot/bin/frankenphp`.
170171

171172
If the build fails, you can use the `--debug` parameter to view detailed error information,
172173
or use the `--with-clean` to clear the old compilation results and recompile.
@@ -290,6 +291,7 @@ You need to specify a compilation target, choose from the following parameters:
290291
- `--build-fpm`: Build a fpm sapi (php-fpm, used in conjunction with other traditional fpm architecture software such as nginx)
291292
- `--build-micro`: Build a micro sapi (used to build a standalone executable binary containing PHP code)
292293
- `--build-embed`: Build an embed sapi (used to embed into other C language programs)
294+
- `--build-frankenphp`: Build a [FrankenPHP](https://github.com/php/frankenphp) executable
293295
- `--build-all`: build all above sapi
294296

295297
```bash
@@ -509,6 +511,8 @@ When `bin/spc doctor` automatically repairs the Windows environment, tools such
509511
Here is an example of installing the tool:
510512

511513
- Download and install UPX (Linux and Windows only): `bin/spc install-pkg upx`
514+
- Download and install nasm (Windows only): `bin/spc install-pkg nasm`
515+
- Download and install go-mod-frankenphp: `bin/spc install-pkg go-mod-frankenphp`
512516

513517
## Command - del-download
514518

docs/zh/guide/manual-build.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ bin/spc craft --debug
145145
- fpm: 构建结果为 `buildroot/bin/php-fpm`。
146146
- micro: 构建结果为 `buildroot/bin/micro.sfx`,如需进一步与 PHP 代码打包,请查看 [打包 micro 二进制](./manual-build#命令-micro-combine-打包-micro-二进制)。
147147
- embed: 参见 [embed 使用](./manual-build#embed-使用)。
148+
- frankenphp: 构建结果为 `buildroot/bin/frankenphp`。
148149

149150
如果中途构建出错,你可以使用 `--debug` 参数查看详细的错误信息,或者使用 `--with-clean` 参数清除旧的编译结果,重新编译。
150151

@@ -250,6 +251,7 @@ bin/spc doctor --auto-fix
250251
- `--build-fpm`: 构建一个 fpm sapi(php-fpm,用于和其他传统的 fpm 架构的软件如 nginx 配合使用)
251252
- `--build-micro`: 构建一个 micro sapi(用于构建一个包含 PHP 代码的独立可执行二进制)
252253
- `--build-embed`: 构建一个 embed sapi(用于嵌入到其他 C 语言程序中)
254+
- `--build-frankenphp`: 构建一个 [frankenphp](https://github.com/php/frankenphp) 二进制
253255
- `--build-all`: 构建以上所有 sapi
254256

255257
```bash
@@ -457,6 +459,8 @@ bin/spc dev:sort-config ext
457459
下面是安装工具的示例:
458460

459461
- 下载安装 UPX(仅限 Linux 和 Windows): `bin/spc install-pkg upx`
462+
- 下载安装 nasm(仅限 Windows): `bin/spc install-pkg nasm`
463+
- 下载安装 go-mod-frankenphp: `bin/spc install-pkg go-mod-frankenphp`
460464

461465
## 命令 del-download - 删除已下载的资源
462466

src/SPC/ConsoleApplication.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
*/
3434
final class ConsoleApplication extends Application
3535
{
36-
public const VERSION = '2.6.0';
36+
public const VERSION = '2.6.1';
3737

3838
public function __construct()
3939
{

src/SPC/builder/unix/UnixBuilderBase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,8 @@ protected function buildFrankenphp(): void
317317
$nowatcher = $this->getLib('watcher') === null ? ',nowatcher' : '';
318318
$xcaddyModules = getenv('SPC_CMD_VAR_FRANKENPHP_XCADDY_MODULES');
319319
// make it possible to build from a different frankenphp directory!
320-
if (!str_contains($xcaddyModules, '--with github.com/dunglas/frankenphp')) {
321-
$xcaddyModules = '--with github.com/dunglas/frankenphp ' . $xcaddyModules;
320+
if (!str_contains($xcaddyModules, '--with github.com/php/frankenphp')) {
321+
$xcaddyModules = '--with github.com/php/frankenphp ' . $xcaddyModules;
322322
}
323323
if ($this->getLib('brotli') === null && str_contains($xcaddyModules, '--with github.com/dunglas/caddy-cbrotli')) {
324324
logger()->warning('caddy-cbrotli module is enabled, but brotli library is not built. Disabling caddy-cbrotli.');

0 commit comments

Comments
 (0)