mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-07 16:55:38 +08:00
Refactor documentation structure and add new artifact model guide
This commit is contained in:
8
docs/zh/develop/extending/index.md
Normal file
8
docs/zh/develop/extending/index.md
Normal file
@@ -0,0 +1,8 @@
|
||||
# 扩展 StaticPHP
|
||||
|
||||
<!-- TODO: 介绍三种扩展方式:
|
||||
1. 贡献到 core —— 直接修改 src/Package/ 和 config/pkg/。
|
||||
2. 外部 Registry —— 通过 SPC_REGISTRIES 环境变量指向自定义 spc.registry.yml。
|
||||
3. Vendor 模式 —— 将类和配置打包为 Composer 库(composer require)。
|
||||
说明各方式的适用场景。给出最小端到端示例:
|
||||
一个 Library 类 + 一个配置 YAML + 一个 spc.registry.yml + 运行 spc。 -->
|
||||
Reference in New Issue
Block a user