marko/http-guzzle

Guzzle HTTP client driver for Marko Framework

Maintainers

Package info

github.com/marko-php/marko-http-guzzle

Type:marko-module

pkg:composer/marko/http-guzzle

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

0.0.1 2026-03-25 17:53 UTC

This package is auto-updated.

Last update: 2026-03-25 21:07:19 UTC


README

Guzzle-powered HTTP client driver--makes real HTTP requests using the battle-tested Guzzle library.

Installation

composer require marko/http-guzzle

Quick Example

use Marko\Http\Contracts\HttpClientInterface;

class ApiClient
{
    public function __construct(
        private HttpClientInterface $httpClient,
    ) {}

    public function fetchData(): array
    {
        $response = $this->httpClient->get('https://api.example.com/data', [
            'headers' => ['Accept' => 'application/json'],
        ]);

        return $response->json();
    }
}

Documentation

Full usage, API reference, and examples: marko/http-guzzle