einar-hansen / http-client-factory
Common interface for HTTP client factories
Installs: 15
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/einar-hansen/http-client-factory
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).