brokeyourbike/http-client

Http client interface and supporting trait

1.0.5 2023-05-14 22:16 UTC

This package is auto-updated.

Last update: 2024-02-20 13:40:21 UTC


README

Latest Stable Version Total Downloads Maintainability Test Coverage

Http client interface and supporting trait

Installation

composer require brokeyourbike/http-client

Usage

use BrokeYourBike\HttpClient\HttpClientInterface;
use BrokeYourBike\HttpClient\HttpClientTrait;

class ApiClient implements HttpClientInterface
{
    use HttpClientTrait;

    public function __construct(\GuzzleHttp\ClientInterface $httpClient)
    {
        $this->httpClient = $httpClient;
    }
}

Authors

License

Mozilla Public License v2.0