PHPackages                             germania-kg/middleware - 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. germania-kg/middleware

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

germania-kg/middleware
======================

Collection of PSR-15 and PSR-7-style middleware

3.3.33(3y ago)091[2 PRs](https://github.com/GermaniaKG/middleware/pulls)MITPHPPHP ^7.0|^8.0

Since Feb 21Pushed 3y ago2 watchersCompare

[ Source](https://github.com/GermaniaKG/middleware)[ Packagist](https://packagist.org/packages/germania-kg/middleware)[ RSS](/packages/germania-kg-middleware/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (7)Versions (20)Used By (0)

[![](https://camo.githubusercontent.com/cac3140c0c6e758f67a1ba689683ced67aa2d534e2187d6e03c5c721ffe3b976/68747470733a2f2f7374617469632e6765726d616e69612d6b672e636f6d2f6c6f676f732f67612d6c6f676f2d323031362d7765622e7376677a)](https://camo.githubusercontent.com/cac3140c0c6e758f67a1ba689683ced67aa2d534e2187d6e03c5c721ffe3b976/68747470733a2f2f7374617469632e6765726d616e69612d6b672e636f6d2f6c6f676f732f67612d6c6f676f2d323031362d7765622e7376677a)

---

Germania KG · Middleware
========================

[](#germania-kg--middleware)

**Collection of useful PSR-15 Single Pass and Double Pass middleware we use in our apps**

[![Packagist](https://camo.githubusercontent.com/f0b227d164d3125432acff501a6a770fceb5a56a020efd4aa9537ddd4ad39ab1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6765726d616e69612d6b672f6d6964646c65776172652e7376673f7374796c653d666c6174)](https://packagist.org/packages/germania-kg/middleware)[![PHP version](https://camo.githubusercontent.com/8dee5a9309e7fd651c4af2fc61c2b771b3d4b9eed35ea128a1f310697e2b9c87/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6765726d616e69612d6b672f6d6964646c65776172652e737667)](https://packagist.org/packages/germania-kg/middleware)[![Build Status](https://camo.githubusercontent.com/738c97cfa249732e422d0958f5d9d6b12357e9e8c33bd06be83d02e4accf6ecf/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f4765726d616e69614b472f4d6964646c65776172652e7376673f6c6162656c3d5472617669732532304349)](https://travis-ci.org/GermaniaKG/Middleware)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/e609e5a2324cb7d62f32d40ce646023514fabb4b7df782e3a5e5070e708e519c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4765726d616e69614b472f4d6964646c65776172652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/GermaniaKG/Middleware/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/3a75cacaa34c33cba313ffea700f23ef3d7bab48022e4bb57be3ce635afa40e8/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4765726d616e69614b472f4d6964646c65776172652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/GermaniaKG/Middleware/?branch=master)[![Build Status](https://camo.githubusercontent.com/78def493d03b97d14f1d94cccec2c4cd4e59609cc2cd37d5e7dc8a3f8d946019/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4765726d616e69614b472f4d6964646c65776172652f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/GermaniaKG/Middleware/build-status/master)

Installation with Composer
--------------------------

[](#installation-with-composer)

```
$ composer require germania-kg/middleware
```

LogHttpStatusMiddleware
-----------------------

[](#loghttpstatusmiddleware)

Writes the HTTP Response's status code and reason to a PSR-3 Logger after *$next* has finished, using *Psr\\Log\\LoggerInterface::info* method. While this middleware is PSR-15 compliant, here a Slim3 example:

```
