becklyn/ddd-core
DDD/CQRS/event-sourcing core building blocks for PHP: entity identities, domain events, command handling, transactions, and an event store workflow. Framework-agnostic abstractions with Symfony/Doctrine/SimpleBus bridge packages available.
Architectural Alignment with DDD Principles:
becklyn/ddd-core, we can model discounts as a separate aggregate with its own invariants (e.g., max discount per customer), making the logic clearer for both developers and business stakeholders."Event-Driven Microservices Strategy:
Compliance and Auditability:
Performance Optimization via CQRS:
Saga Orchestration for Complex Workflows:
Tech Stack Standardization:
Reducing Technical Debt in Legacy Systems:
Adopt if:
Look elsewhere if:
"This package helps us build software that matches how our business actually works—not how databases or frameworks force us to structure it. For example:
This isn’t just ‘better code’—it’s reducing risk, cutting compliance costs, and enabling faster innovation."
"This package gives us opinionated, production-ready DDD/CQRS scaffolding in PHP, solving key pain points:
Tradeoffs:
Recommendation: Pilot on a high-risk domain (e.g., payments, inventory) where correctness and auditability matter most."*
"This package saves us from reinventing DDD/CQRS wheels while giving us structure to avoid anemic domain models. Here’s how it helps:
OrderCreated, PaymentFailed), so we can react to changes without polling.CommandHandlerTestTrait) make it easier to **testHow can I help you explore Laravel packages today?