PHP Message Broker Adapter Generator
Generates production-grade message broker abstractions and adapters for PHP applications using DDD and clean architecture principles.
This skill automates the creation of a robust messaging layer for PHP 8.4 projects, providing a unified interface to interact with RabbitMQ, Apache Kafka, or AWS SQS. It follows the Ports and Adapters (Hexagonal) pattern, ensuring your domain logic remains decoupled from specific infrastructure vendors. By generating immutable message value objects, serializers, and factory-based adapter implementations, it enables seamless switching between brokers, facilitates testing with an InMemory adapter, and ensures high-quality, type-safe messaging code compliant with modern standards.
主要功能
0145 GitHub stars
02Includes immutable Message Value Objects with correlation IDs and metadata
03Generates unified abstractions for RabbitMQ, Kafka, and AWS SQS
04Implements clean architecture patterns and PSR standards for PHP 8.4
05Creates comprehensive unit tests and an InMemory adapter for testing isolation
06Provides built-in JSON serialization with extensible serializer interfaces
使用场景
01Abstracting infrastructure to prevent vendor lock-in when choosing a message broker
02Implementing asynchronous communication between microservices or bounded contexts
03Creating a mockable messaging environment for high-performance unit testing