marko / http-guzzle
Guzzle HTTP client driver for Marko Framework
Package info
github.com/marko-php/marko-http-guzzle
Type:marko-module
pkg:composer/marko/http-guzzle
0.0.1
2026-03-25 17:53 UTC
Requires
- php: ^8.5
- guzzlehttp/guzzle: ^7.0
- marko/core: 0.0.1
- marko/http: 0.0.1
Requires (Dev)
- pestphp/pest: ^4.0
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