refactor!: replace Guzzle with PSR-18/PSR-17 interfaces#1
Merged
JasonBenett merged 1 commit intomainfrom Nov 29, 2025
Merged
Conversation
Replace hard Guzzle dependency with PSR-18 (HTTP Client) and PSR-17 (HTTP Factories) interfaces for true dependency inversion. The module now supports any PSR-compliant HTTP client implementation. BREAKING CHANGE: Module now requires PSR-18/PSR-17 implementations. Guzzle is auto-discovered if available but is no longer a hard dependency. Users can inject their own PSR clients via configuration. Changes: - Replace GuzzleHttp\Client with PSR-18 ClientInterface - Add PSR-17 RequestFactoryInterface and StreamFactoryInterface support - Implement auto-discovery for Guzzle when PSR clients not provided - Add HttpClientException implementing PSR-18 ClientExceptionInterface - Add HTTP_BAD_REQUEST constant for status code threshold - Replace string concatenation/interpolation with sprintf in exceptions - Move guzzlehttp/guzzle to require-dev (optional dependency) - Update all documentation (CHANGELOG, README, CLAUDE.md) - Remove docker-compose.yml (users should manage WireMock separately) Migration: - Install a PSR-18/PSR-17 implementation (e.g., guzzlehttp/guzzle) - Or provide custom PSR clients via httpClient, requestFactory, streamFactory config - Remove deprecated config options: timeout, verifySSL (configure via PSR client) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. ℹ️ You can also turn on project coverage checks and project coverage reporting on Pull Request comment Thanks for integrating Codecov - We've got you covered ☂️ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replace hard Guzzle dependency with PSR-18 (HTTP Client) and PSR-17 (HTTP Factories) interfaces for true dependency inversion. The module now supports any PSR-compliant HTTP client implementation.
BREAKING CHANGE: Module now requires PSR-18/PSR-17 implementations. Guzzle is auto-discovered if available but is no longer a hard dependency. Users can inject their own PSR clients via configuration.
Changes:
Migration:
🤖 Generated with Claude Code