PHPackages                             webshr/psr7-server-request-extension - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. webshr/psr7-server-request-extension

ActiveLibrary[HTTP &amp; Networking](/categories/http)

webshr/psr7-server-request-extension
====================================

0.1.0(2y ago)04PHP

Since Apr 5Pushed 2y agoCompare

[ Source](https://github.com/webshr/psr7-server-request-extension)[ Packagist](https://packagist.org/packages/webshr/psr7-server-request-extension)[ RSS](/packages/webshr-psr7-server-request-extension/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (6)Versions (2)Used By (0)

PSR7 ServerRequest Extension
============================

[](#psr7-serverrequest-extension)

Provides traits that add utility functions to a PSR7 `ServerResponse` subclass that make it easier to interact with the URI and input. Inspired by the PSR7 utility functions of [Rareloop](https://github.com/Rareloop/psr7-server-request-extension).

Install
-------

[](#install)

`composer require webshr/psr7-server-request-extension`

Create a ServerRequest
----------------------

[](#create-a-serverrequest)

Create a subclass of a PSR7 compatible `ServerRequest` object (e.g. [Laminas](https://github.com/laminas/laminas-diactoros)) and add the `InteractsWithInput` and `InteractsWithUri` traits.

```
