becklyn/ddd-generator-bundle
Symfony bundle to generate DDD boilerplate via Maker commands. Installs as a dev dependency and provides abstract makers (DddMaker, entity/test/command variants) plus templating support so you can create and register custom generators.
givenEntityIsCreated() in tests).Authorization/Domain/User) that can be extracted into standalone services.Order/Domain/Order) for bounded contexts.UserTest with givenEntityIsCreated()).Adopt When:
Look Elsewhere If:
make:model) may suffice.make:controller or Inertia.js.*"This package automates 70% of the repetitive work in building Domain-Driven Design components—entities, commands, and tests—so our team can focus on delivering business value faster. For example, creating a new User entity and its tests used to take 20 minutes; now it takes 90 seconds. This directly impacts:
*"This solves two critical pain points:
DddEntityMaker abstract class in 10 minutes.givenEntityIsCreated() and command handler traits, reducing flaky tests.
Risks: Minimal—it’s a dev dependency with no runtime impact. We can pilot it in one microservice first (e.g., Order) before rolling out."**"If you’re tired of writing the same DDD code over and over, this is for you. Here’s what it does:
php artisan make:ddd-entity User → Generates:
User.php) with UUID, timestamps, and soft deletes.UserRepositoryInterface.php).CreateUserCommand.php) + handler with repository injection.UserTest.php) with givenEntityIsCreated() and assertion helpers.resources/skeleton/ddd/ or extend DddEntityMaker for your team’s patterns.composer require becklyn/ddd-generator-bundle --dev
php artisan make:ddd-entity Post --domain=Blog
No more copy-pasting entity stubs or writing the same test setup. Just focus on the fun part: business logic."*
How can I help you explore Laravel packages today?