Skip to content

v2.0.0

Choose a tag to compare

@SoloPHP SoloPHP released this 04 Dec 13:56
· 6 commits to main since this release

feat!: rewrite HTTP client using Guzzle with retry functionality

BREAKING CHANGES:

  • Complete rewrite using Guzzle HTTP client
  • Changed from trait to abstract class
  • Requires PHP 8.1+
  • Automatic retry on rate limits (429) and server errors (5xx)
  • JSON response handling by default
  • New method getBaseUrl() required in child classes
  • Changed response handling interface
  • Removed direct curl usage
  • New configuration format for client options

Features:

  • Configurable retry attempts
  • Exponential backoff strategy
  • Retry-After header support
  • Fluent interface
  • Async request support
  • Better error handling
  • Full PSR-7 compatibility