PHP Unit of Work Generator
Generates robust Unit of Work infrastructure for PHP 8.4 to ensure transactional consistency across multiple domain aggregates.
This skill streamlines the implementation of the Unit of Work design pattern in PHP applications following DDD and Hexagonal Architecture principles. It automates the creation of complex infrastructure components including aggregate trackers, identity maps, and transaction managers, allowing developers to manage multi-entity persistence and domain event dispatching within a single transactional boundary. By generating standardized interfaces and Doctrine-ready implementations, it reduces boilerplate while enforcing architectural best practices for data integrity and system reliability.
主な機能
01PHP 8.4 compatible code generation with strict typing and Enums
02Post-commit domain event collection and dispatching
03Transactional consistency across multiple aggregate roots
04Automated dirty checking for optimized database updates
0545 GitHub stars
06Identity Map implementation to prevent duplicate entity loading
ユースケース
01Coordinating complex business operations involving orders, payments, and inventory
02Decoupling domain event dispatching from persistence logic for eventual consistency
03Implementing batch persistence for high-performance entity updates