PHPackages                             loophp/psr17 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. loophp/psr17

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

loophp/psr17
============

Provides a PSR17 synthetic implementation.

1.0.6(3y ago)182.3k—2.2%[12 PRs](https://github.com/loophp/psr17/pulls)3MITPHPPHP &gt;= 8.1CI passing

Since Jul 23Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/loophp/psr17)[ Packagist](https://packagist.org/packages/loophp/psr17)[ Docs](http://github.com/loophp/psr17)[ GitHub Sponsors](https://github.com/drupol)[ RSS](/packages/loophp-psr17/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (10)Versions (20)Used By (3)

[![Latest Stable Version](https://camo.githubusercontent.com/44b0e1f35cb584ba19f03a26b5e6f2c139e50ea7406f369cd63ad3af7a22000a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6f6f7068702f70737231372e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/loophp/psr17)[![GitHub stars](https://camo.githubusercontent.com/4b52454a5109afc3cc36b9b0b41e9b2fc0d16e2eb222d77ec701ff47033d47f4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6c6f6f7068702f70737231372e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/loophp/psr17) [![Total Downloads](https://camo.githubusercontent.com/988f7d45c71dfeb69ada25d9dd7f446c274ea3d3fe705e2b19a075c77cfd3ae7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6f6f7068702f70737231372e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/loophp/psr17)[![GitHub Workflow Status](https://camo.githubusercontent.com/031b41c252c1f1c2dd5379457058f508137ab9d9e1c9d0b0bc1ce63f8de77841/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c6f6f7068702f70737231372f74657374732e796d6c3f6272616e63683d6d6173746572267374796c653d666c61742d737175617265)](https://github.com/loophp/psr17/actions)[![Type Coverage](https://camo.githubusercontent.com/cdc16fd57c85676a929911f0406c31933049830f17ebdf66f0cbfb4e7dc13049/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f64796e616d69632f6a736f6e3f7374796c653d666c61742d73717561726526636f6c6f723d636f6c6f72266c6162656c3d54797065253230636f7665726167652671756572793d6d6573736167652675726c3d687474707325334125324625324673686570686572642e6465762532466769746875622532466c6f6f7068702532467073723137253246636f766572616765)](https://shepherd.dev/github/loophp/psr17) [![License](https://camo.githubusercontent.com/32d6cc93d20eaba7afb7c3af334324826c0d2be3ddbef7f069b982267ae8115f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6c6f6f7068702f70737231372e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/loophp/psr17)[![Donate!](https://camo.githubusercontent.com/a71f45de7e408be2477113d166e9ee94c90bbf814a1373fd154aa5b6652302de/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53706f6e736f722d4769746875622d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/sponsors/drupol)

PSR-17 http-factories implementation
====================================

[](#psr-17-http-factories-implementation)

The [PSR-17 specification](https://www.php-fig.org/psr/psr-17/) is about HTTP factories.

There are many PSR-17 interfaces and the purpose of this package is to regroup them all in one single interface: `PSR17Interface`.

This package also implements a `PSR17` class which implements this interface and provide a basic implementation.

Requirements
------------

[](#requirements)

- PHP &gt;= 7.4

Installation
------------

[](#installation)

```
composer require loophp/psr17
```

This package requires also a [psr/http-factory-implementation](https://packagist.org/providers/psr/http-factory-implementation). I advise to use [nyholm/psr7](https://packagist.org/packages/nyholm/psr7) from [Tobias Nyholm](https://tnyholm.se/).

Usage
-----

[](#usage)

```
