v3.0.0
Breaking change release with redesigned API for better developer
experience.
Key Features
- Fluent API - Chain methods for easy configuration
- Built-in retry mechanism with exponential backoff
- PSR-3 Logger integration for request/response logging
- Enhanced JSON handling with dot notation access
- Async request support
Example
$client = HttpClient::create('https://api.example.com')
->timeout(30)
->withToken('your-token')
->retry(3, 1000);
$response = $client->get('/users');
$userName = $response->json('user.profile.name');Breaking Changes
- Complete API redesign - not backward compatible with v2.x
- Removed AbstractHttpClient class
- Minimum PHP 8.1, Guzzle 7.10