PHPackages                             vaibhavpandeyvpz/vidyut - 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. vaibhavpandeyvpz/vidyut

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

vaibhavpandeyvpz/vidyut
=======================

No frills PSR-7 request handler based on PSR-15 specification.

3.0.0(6mo ago)15971MITPHPPHP ^8.2CI failing

Since Jan 28Pushed 6mo ago1 watchersCompare

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

READMEChangelogDependencies (5)Versions (4)Used By (1)

Vidyut
======

[](#vidyut)

[![Latest Version](https://camo.githubusercontent.com/864bf04de3a7f3caa4f353a17ea485ced9846a25a55a9d2696107158d6885509/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7661696268617670616e64657976707a2f7669647975742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/vaibhavpandeyvpz/vidyut)[![Downloads](https://camo.githubusercontent.com/bfb1bd35e737db226e7f9c621f423c49ec0dc638e4432abbde1699222941fb1c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7661696268617670616e64657976707a2f7669647975742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/vaibhavpandeyvpz/vidyut)[![PHP Version](https://camo.githubusercontent.com/948552f86ad5344d41a223a58929630f9822d81c83d8c9aca9f86461ec334a64/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7661696268617670616e64657976707a2f7669647975742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/vaibhavpandeyvpz/vidyut)[![License](https://camo.githubusercontent.com/614451ac36fb22b2e38548a726c92979ba5b62610d2ba78b80bc164b4af9a6f9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7661696268617670616e64657976707a2f7669647975742e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://camo.githubusercontent.com/4974094d245cc6fc0c394077322a4ea42c73897fd949ca9df8b4fc44a520e83f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7661696268617670616e64657976707a2f7669647975742f74657374732e796d6c3f6272616e63683d6d6173746572267374796c653d666c61742d737175617265)](https://github.com/vaibhavpandeyvpz/vidyut/actions)

No frills [PSR-7](http://www.php-fig.org/psr/psr-7/) request handler based on [PSR-15](https://www.php-fig.org/psr/psr-15/) specification.

> **Vidyut** (`विद्युत्`) - Sanskrit for "Electricity", representing the flow of requests through the middleware pipeline.

Features
--------

[](#features)

- ✅ **PSR-15 Compliant** - Full implementation of the PSR-15 middleware specification
- ✅ **PSR-7 Compatible** - Works with any PSR-7 HTTP message implementation
- ✅ **Flexible Middleware** - Supports both `MiddlewareInterface` instances and callables
- ✅ **Fluent Interface** - Chain middleware using the `pipe()` method
- ✅ **Zero Dependencies** - Only requires PSR interfaces (PSR-7, PSR-15)
- ✅ **Modern PHP** - Built for PHP 8.2+ with modern language features
- ✅ **100% Test Coverage** - Fully tested with comprehensive test suite

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

[](#installation)

Install via Composer:

```
composer require vaibhavpandeyvpz/vidyut
```

**Note:** You'll also need a PSR-7 implementation. We recommend [sandesh](https://packagist.org/packages/vaibhavpandeyvpz/sandesh):

```
composer require vaibhavpandeyvpz/sandesh
```

Quick Start
-----------

[](#quick-start)

```
