<commit_before>> **NOTE:** This package is being ported to PSR-15. [Check it out here](https://github.com/middlewares/psr15-middlewares)

# psr7-middlewares


[![Build Status](https://travis-ci.org/oscarotero/psr7-middlewares.svg)](https://travis-ci.org/oscarotero/psr7-middlewares)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/oscarotero/psr7-middlewares/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/oscarotero/psr7-middlewares/?branch=master)

[![SensioLabsInsight](https://insight.sensiolabs.com/projects/0d91152f-1308-4709-b834-ea048afee7da/big.png)](https://insight.sensiolabs.com/projects/0d91152f-1308-4709-b834-ea048afee7da)

Collection of [PSR-7](http://www.php-fig.org/psr/psr-7/) middlewares.


## Requirements

* PHP >= 5.5
* A [PSR-7 HTTP Message implementation](https://packagist.org/providers/psr/http-message-implementation), for example [zend-diactoros](https://github.com/zendframework/zend-diactoros)
* A PSR-7 middleware dispatcher compatible with the following signature:

```php
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\ResponseInterface;

function (RequestInterface $request, ResponseInterface $response, callable $next) {
    // ...
}
```

So, you can use these midlewares with:

* [Relay](https://github.com/relayphp/Relay.Relay)
* [Expressive](http://framework.zend.com/expressive)
* [Slim 3](http://www.slimframework.com)
* [Spiral](http://spiral-framework.com)
* [Middleman](https://github.com/mindplay-dk/middleman)
* etc...<commit_msg>fix zend-expressive link<commit_after>> **NOTE:** This package is being ported to PSR-15. [Check it out here](https://github.com/middlewares/psr15-middlewares)

# psr7-middlewares


[![Build Status](https://travis-ci.org/oscarotero/psr7-middlewares.svg)](https://travis-ci.org/oscarotero/psr7-middlewares)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/oscarotero/psr7-middlewares/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/oscarotero/psr7-middlewares/?branch=master)

[![SensioLabsInsight](https://insight.sensiolabs.com/projects/0d91152f-1308-4709-b834-ea048afee7da/big.png)](https://insight.sensiolabs.com/projects/0d91152f-1308-4709-b834-ea048afee7da)

Collection of [PSR-7](http://www.php-fig.org/psr/psr-7/) middlewares.


## Requirements

* PHP >= 5.5
* A [PSR-7 HTTP Message implementation](https://packagist.org/providers/psr/http-message-implementation), for example [zend-diactoros](https://github.com/zendframework/zend-diactoros)
* A PSR-7 middleware dispatcher compatible with the following signature:

```php
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\ResponseInterface;

function (RequestInterface $request, ResponseInterface $response, callable $next) {
    // ...
}
```

So, you can use these midlewares with:

* [Relay](https://github.com/relayphp/Relay.Relay)
* [Expressive](https://docs.zendframework.com/zend-expressive/)
* [Slim 3](http://www.slimframework.com)
* [Spiral](http://spiral-framework.com)
* [Middleman](https://github.com/mindplay-dk/middleman)
* etc...
{'fraction_non_alphanumeric': 0.1717931937172775, 'fraction_numerical': 0.03795811518324607, 'mean_word_length': 5.36875, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 23, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3560775', 'n_tokens_mistral': 1227, 'n_tokens_neox': 1144, 'n_words': 141}