einar-hansen/http-client-factory

Common interface for HTTP client factories

v1.1.3 2022-08-09 08:29 UTC

This package is auto-updated.

Last update: 2024-05-09 12:08:28 UTC


README

Latest Version on Packagist Total Downloads

This repository holds the interface for new http factories that return a PSR-18 (HTTP Client) client.

Note that this is not a HTTP Client Factory implementation. For an example, checkout the Guzzle Client Factory

The installable package and dependents are listed on Packagist.

Installation

composer require einar-hansen/http-client-factory

Testing

# Install packages
docker run --rm --interactive --tty --volume $(pwd):/app composer install

# Run code style formatting and static analysis
docker run -it -v $(pwd):/app -w /app php:8.1-alpine vendor/bin/pint
docker run -it -v $(pwd):/app -w /app php:8.1-alpine vendor/bin/phpstan --level=9 analyse src

License

The MIT License (MIT).