定制 modular-monolith/installer 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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:

  1. Remove the TodoList example module? — strips src/Capability/TodoList and tests/Capability/TodoList
  2. APP_SECRET — leave empty to auto-generate a random value
  3. Docker container name prefix — used as COMPOSE_PROJECT_NAME in .env; defaults to the directory name sanitized to lowercase alphanumeric-and-hyphens (e.g. my-projectmy-project)

What it does

  1. Runs composer create-project modular-monolith/symfony-application <directory>
  2. Sets APP_SECRET in .env
  3. Sets COMPOSE_PROJECT_NAME in .env (controls Docker container name prefix)
  4. Optionally removes the TodoList example module from src/ and tests/

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
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固