einar-hansen / http-client-factory
Common interface for HTTP client factories
v1.1.3
2022-08-09 08:29 UTC
Requires
- php: ^7.0 || ^8.0
- psr/http-client: ^1.0
Requires (Dev)
- laravel/pint: ^1.0
- nunomaduro/larastan: ^2.1
README
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).