PHPackages                             kfreiman/psr-15-validation - 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. kfreiman/psr-15-validation

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

kfreiman/psr-15-validation
==========================

A validation repository for PSR-15 middleware packages

v1.7(8y ago)018MITPHPPHP ^7.0

Since Sep 20Pushed 8y ago1 watchersCompare

[ Source](https://github.com/kfreiman/psr-15-validation)[ Packagist](https://packagist.org/packages/kfreiman/psr-15-validation)[ Docs](https://github.com/kfreiman/psr-15-validation)[ RSS](/packages/kfreiman-psr-15-validation/feed)WikiDiscussions master Synced 2d ago

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

middlewares/validation
======================

[](#middlewaresvalidation)

[![Latest Version on Packagist](https://camo.githubusercontent.com/e91d6d7b928221892e539864d726a90230523e28a14472822fd732494b2ba04e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6964646c6577617265732f76616c69646174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/middlewares/validation)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://camo.githubusercontent.com/ac387dd2d5c6ff3bbb20e0979d877dc3d8aab7b56166c22854fe03cf569c378f/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6d6964646c6577617265732f76616c69646174696f6e2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/middlewares/validation)[![Quality Score](https://camo.githubusercontent.com/0db3655be27a45bef4b2d13291ed47d2da5cfec6ef86288c864e93d94e3a75d5/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6d6964646c6577617265732f76616c69646174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/middlewares/validation)[![Total Downloads](https://camo.githubusercontent.com/b7579d70126dadb1bf943d136b3921b88d0cb93f2e0bc161df950f7beb1fffd8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6964646c6577617265732f76616c69646174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/middlewares/validation)[![SensioLabs Insight](https://camo.githubusercontent.com/6f33eaf16ebeefefca8746f20422a150aa24a66ac0411337b1c56c5df34b6308/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f25374270726f6a6563745f69645f686572652537442e7376673f7374796c653d666c61742d737175617265)](https://insight.sensiolabs.com/projects/%7Bproject_id_here%7D)

Description of the middleware

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

[](#requirements)

- PHP &gt;= 5.6
- A [PSR-7](https://packagist.org/providers/psr/http-message-implementation) http mesage implementation ([Diactoros](https://github.com/zendframework/zend-diactoros), [Guzzle](https://github.com/guzzle/psr7), [Slim](https://github.com/slimphp/Slim), etc...)
- A [PSR-15 middleware dispatcher](https://github.com/middlewares/awesome-psr15-middlewares#dispatcher)

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

[](#installation)

This package is installable and autoloadable via Composer as [kfreiman/psr-15-validation](https://packagist.org/packages/kfreiman/psr-15-validation).

```
composer require kfreiman/psr-15-validation
```

For compatible with `http-interop/http-middleware` version less than `0.5` use versions tagged in 0.x

```
composer require kfreiman/psr-15-validation "^0.1"
```

Example
-------

[](#example)

```
$dispatcher = new Dispatcher([
	(new Middlewares\Validation())
]);

$response = $dispatcher->dispatch(new ServerRequest());
```

Options
-------

[](#options)

#### `option1()`

[](#option1)

Option description

#### `option2($arg)`

[](#option2arg)

Option description

---

Please see [CHANGELOG](CHANGELOG.md) for more information about recent changes and [CONTRIBUTING](CONTRIBUTING.md) for contributing details.

The MIT License (MIT). Please see [LICENSE](LICENSE) for more information.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~5 days

Total

13

Last Release

3094d ago

Major Versions

v0.1 → v1.22017-09-26

v0.3 → v1.32017-11-21

PHP version history (2 changes)v1.0PHP ^5.6 || ^7.0

v0.1PHP ^7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/4507eb0e7abf6bfde893d8daa17e141281062909eefd9450e63fa31dee94cfa4?d=identicon)[k.freiman](/maintainers/k.freiman)

---

Top Contributors

[![kfreiman](https://avatars.githubusercontent.com/u/2056294?v=4)](https://github.com/kfreiman "kfreiman (18 commits)")

---

Tags

httppsr-7middlewareserverpsr-15

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/kfreiman-psr-15-validation/health.svg)

```
[![Health](https://phpackages.com/badges/kfreiman-psr-15-validation/health.svg)](https://phpackages.com/packages/kfreiman-psr-15-validation)
```

###  Alternatives

[middlewares/request-handler

Middleware to execute request handlers

451.6M26](/packages/middlewares-request-handler)[middlewares/fast-route

Middleware to use FastRoute

96191.1k15](/packages/middlewares-fast-route)[middlewares/negotiation

Middleware to implement content negotiation

47442.1k11](/packages/middlewares-negotiation)[middlewares/payload

Middleware to parse the body of the request with support for json, csv and url-encode

32466.8k17](/packages/middlewares-payload)[middlewares/http-authentication

Middleware to implement Basic and Digest Http authentication

35302.0k2](/packages/middlewares-http-authentication)[middlewares/client-ip

Middleware to detect the client ip and save it as a request attribute

16629.7k9](/packages/middlewares-client-ip)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
