modular-monolith/installer
Composer 安装命令:
composer create-project modular-monolith/installer
包简介
Interactive installer for modular-monolith/symfony-application
README 文档
README
Interactive CLI for creating projects from modular-monolith/symfony-application.
Install globally
composer global require modular-monolith/installer
Ensure Composer's global bin directory is on your PATH.
Install PHAR (no Composer)
Download the PHAR from GitHub Releases:
curl -fsSL -o modulith.phar \ https://github.com/ModularMonolith/Symfony-Application/releases/latest/download/modulith.phar chmod +x modulith.phar ./modulith.phar new my-project
Usage
modulith new my-project
Options:
| Option | Description |
|---|---|
--repository=URL |
VCS URL when the template is not on Packagist (default: GitHub template repo) |
-n, --no-interaction |
Skip prompts; keep TodoList example, auto-generate APP_SECRET, use computed container prefix |
Interactive prompts
The installer asks:
- Remove the TodoList example module? — strips
src/Capability/TodoListandtests/Capability/TodoList - APP_SECRET — leave empty to auto-generate a random value
- Docker container name prefix — used as
COMPOSE_PROJECT_NAMEin.env; defaults to the directory name sanitized to lowercase alphanumeric-and-hyphens (e.g.my-project→my-project)
What it does
- Runs
composer create-project modular-monolith/symfony-application <directory> - Sets
APP_SECRETin.env - Sets
COMPOSE_PROJECT_NAMEin.env(controls Docker container name prefix) - Optionally removes the TodoList example module from
src/andtests/
Local development
composer install ./bin/modulith new /tmp/my-test-project
For building and releasing see docs/releasing.md.
License
MIT © 2026 Florian Krämer
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-06-21