Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/einar-hansen/http-client-factory
https://github.com/einar-hansen/http-client-factory
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/einar-hansen/http-client-factory
- Owner: einar-hansen
- Created: 2022-07-11T13:18:11.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-09T08:31:44.000Z (over 2 years ago)
- Last Synced: 2024-05-07T12:43:36.021Z (9 months ago)
- Language: PHP
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HTTP Client Factory
[![Latest Version on Packagist](https://img.shields.io/packagist/v/einar-hansen/http-client-factory.svg?style=flat-square)](https://packagist.org/packages/einar-hansen/http-client-factory)
[![Total Downloads](https://img.shields.io/packagist/dt/einar-hansen/http-client-factory.svg?style=flat-square)](https://packagist.org/packages/einar-hansen/http-client-factory)This repository holds the interface for new http factories that return a [PSR-18 (HTTP Client)][psr-url] client.
Note that this is not a HTTP Client Factory implementation. For an example, checkout the [Guzzle Client Factory][guzzle-client-url]
The installable [package][package-url] and [dependents][implementation-url] are listed on Packagist.
[psr-url]: https://www.php-fig.org/psr/psr-18
[package-url]: https://packagist.org/packages/einar-hansen/http-client-factory
[guzzle-client-url]: https://packagist.org/packages/einar-hansen/guzzle-client-factory
[implementation-url]: https://packagist.org/packages/einar-hansen/http-client-factory/dependents## Installation
```bash
composer require einar-hansen/http-client-factory
```## Testing
```bash
# 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).