PHP Database Read-Write Proxy Generator
Generates robust database connection proxies for PHP 8.4 to implement seamless read/write splitting and replica routing.
This skill automates the creation of high-performance database infrastructure components that optimize application scaling by distributing read loads across multiple replicas while maintaining write consistency. It generates a transaction-aware proxy that intelligently routes SQL queries based on operation type, incorporating enterprise-grade patterns such as sticky connections after writes to prevent stale data and automated health checks to ensure traffic only reaches healthy replicas. Designed for modern PHP 8.4 environments, it follows DDD and Clean Architecture principles to keep your database routing logic decoupled from business code.