PHP PSR-17 HTTP Factory Generator
Generates PSR-17 compliant HTTP factory implementations for PHP 8.4 to streamline the creation of standardized PSR-7 messages.
This skill automates the production of standards-compliant PHP HTTP factories, implementing the full suite of PSR-17 interfaces including Request, Response, ServerRequest, Stream, UploadedFile, and Uri factories. Designed for PHP 8.4, it leverages modern language features like readonly classes to provide a robust infrastructure layer for your web applications. It is ideal for developers following Clean Architecture or DDD patterns who need to decouple their application from specific PSR-7 implementations while ensuring full interoperability across the PHP ecosystem.
主な機能
01Provides boilerplate for Request, Response, Stream, Uri, and UploadedFile creation
02Includes ready-to-use DI container registration examples for Symfony and others
03Generates comprehensive PSR-17 compliant factory implementations
04Uses modern PHP 8.4 syntax including readonly classes and type safety
05Ensures high testability by decoupling HTTP message creation from implementation
0645 GitHub stars
ユースケース
01Setting up Dependency Injection containers with standardized HTTP factory interfaces
02Implementing Hexagonal Architecture by decoupling the infrastructure layer from PSR-7 vendors
03Building framework-agnostic PHP libraries that require HTTP message creation