ez-php/http-client

HTTP client module for the ez-php framework — fluent cURL-based client for making outgoing HTTP requests

Maintainers

Package info

github.com/ez-php/http-client

pkg:composer/ez-php/http-client

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

0.2.0 2026-03-15 03:47 UTC

This package is auto-updated.

Last update: 2026-03-15 04:17:44 UTC


README

HTTP client module for the ez-php framework — fluent cURL-based client for making outgoing HTTP requests.

CI

Requirements

  • PHP 8.5+
  • ext-curl
  • ez-php/framework ^1.0

Installation

composer require ez-php/http-client

Setup

Register the service provider:

$app->register(\EzPhp\HttpClient\HttpClientServiceProvider::class);

Usage

$http = $app->make(\EzPhp\HttpClient\Http::class);

$response = $http->get('https://api.example.com/users');
$response = $http->post('https://api.example.com/users', ['name' => 'Alice']);

echo $response->status();    // 200
echo $response->body();      // raw response body
$data = $response->json();   // decoded JSON

License

MIT — Andreas Uretschnig