dormilich/http-client
Lightweight PHP HTTP client wrapper focused on simple requests and responses, with a clean API for common HTTP methods and header/body handling. Useful as a minimal dependency for sending HTTP calls without a full-featured framework.
illuminate/http) is transitioning toward PSR-18. This package could replace or augment Laravel’s built-in HTTP client (HttpClient) or Guzzle.HttpClient or Guzzle for critical paths.HttpClient?
HttpException) vs. PSR-18 errors?spatie/fractal).dormilich/http-client wrapper as a service, injecting the PSR-18 client.$this->app->bind(ClientInterface::class, function ($app) {
return new \dormilich\http_client(new \GuzzleHttp\Client());
});
HttpClient or GuzzleHttp\Client directly. Use this package only if it solves a specific pain point (e.g., request/response normalization).deprecated() helper.TrimStrings, ConvertEmptyStringsToNull). May need custom middleware to bridge gaps.Cache::remember). Extend the package or use middleware.HttpClient or Mockery to mock PSR-18 clients in tests.guzzlehttp/guzzle:^7.0).tap() or middleware).php-http/async-client) if scaling is critical.php-http/client).security:check or sensio-labs/security-checker.HttpClient (e.g., no built-in JSON decoding).How can I help you explore Laravel packages today?