PSR-18 HTTP Client Generator
Generates standardized, PSR-18 compliant HTTP client implementations for PHP 8.4 with built-in logging and exception handling.
This skill streamlines the creation of robust, interoperable HTTP clients in PHP 8.4 by generating code that adheres to the PSR-18 standard. It provides a complete implementation stack including a native cURL-based client, specialized exception classes for granular error handling, and a decorator for structured logging. It is specifically designed for developers following Clean Architecture, DDD, or Hexagonal patterns who require portable and testable external API integrations without the overhead of heavy third-party libraries.
주요 기능
01Generates PSR-18 compliant ClientInterface implementations using native cURL
0245 GitHub stars
03Includes specialized PSR-18 exception classes for network and request errors
04Provides a LoggingHttpClient decorator for request/response observability
05Supports modern PHP 8.4 features including readonly classes
06Configurable cURL options for timeouts, SSL verification, and redirects
사용 사례
01Adding observability to HTTP calls through structured logging decorators
02Implementing microservice-to-microservice communication with standard interfaces
03Integrating external REST or GraphQL APIs into modern PHP applications