PSR-15 Middleware Generator

•
45
•

Generates standardized PSR-15 compliant HTTP middleware and request handling pipelines for PHP 8.4 applications.

This skill automates the creation of PSR-15 HTTP middleware, providing a structured approach to building request-response pipelines in modern PHP environments. It generates production-ready implementations for common tasks such as authentication, CORS, logging, and error handling, complete with a robust middleware pipeline dispatcher. Designed for developers following Clean Architecture or Hexagonal patterns, it ensures that cross-cutting concerns are decoupled from core logic while providing comprehensive PHPUnit tests for every generated component.

Características Principales

01Includes a reusable Middleware Pipeline for flexible request delegation
02Generates PSR-15 compliant MiddlewareInterface and RequestHandlerInterface implementations
03Provides pre-built templates for CORS, Logging, and Error Handling middleware
04Optimized for PHP 8.4 using readonly classes and constructor property promotion
0545 GitHub stars
06Generates PHPUnit test cases with modern attributes for all components

Casos de Uso

01Standardizing error handling and CORS policies across PHP microservices
02Implementing authentication and authorization layers for PHP web APIs
03Building custom request-response transformation pipelines