Skip to content

Conversation

@JasonBenett
Copy link
Owner

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

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>
@JasonBenett JasonBenett self-assigned this Nov 29, 2025
@codecov-commenter
Copy link

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 ☂️

@JasonBenett JasonBenett merged commit 4c2ec0e into main Nov 29, 2025
4 checks passed
@JasonBenett JasonBenett deleted the remove-guzzle-dependency branch November 29, 2025 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants