PHPackages                             vaibhavpandeyvpz/filtr - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. vaibhavpandeyvpz/filtr

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

vaibhavpandeyvpz/filtr
======================

Simple and fluent input validation for PHP 8.2+.

2.0.0(4mo ago)1581MITPHPPHP ^8.2CI passing

Since Feb 1Pushed 4mo ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (7)Used By (1)

Filtr
=====

[](#filtr)

[![Latest Version](https://camo.githubusercontent.com/fd56dbd7471b77b80706edb01fd0b6182fb04e3d5a31a32f3e35a853e0025439/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7661696268617670616e64657976707a2f66696c74722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/vaibhavpandeyvpz/filtr)[![Downloads](https://camo.githubusercontent.com/1fa6b280aa790315eda7e48c301daff197bf5a6a0861694c1b36b10d053e1d54/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7661696268617670616e64657976707a2f66696c74722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/vaibhavpandeyvpz/filtr)[![PHP Version](https://camo.githubusercontent.com/1324f831ad45e7498c2eb567f31d93eaeeeb33e4d889d496246e0167c8838c96/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7661696268617670616e64657976707a2f66696c74722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/vaibhavpandeyvpz/filtr)[![License](https://camo.githubusercontent.com/ffc36dc178593f5dce910836ae4987409ad3dc13b90d5f899fef6e0b1489db58/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7661696268617670616e64657976707a2f66696c74722e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://camo.githubusercontent.com/3a3639bc34ad2268d86808f53e64cd302d6837485fe233ce1b86bb3fbc7f257e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7661696268617670616e64657976707a2f66696c74722f74657374732e796d6c3f6272616e63683d6d6173746572267374796c653d666c61742d737175617265)](https://github.com/vaibhavpandeyvpz/filtr/actions)

Simple and fluent input validation library for PHP 8.2+.

Features
--------

[](#features)

- **Fluent API**: Chain validation rules together for readable, expressive code
- **Required &amp; Optional Fields**: Distinguish between required and optional fields
- **Nested Field Access**: Use dot notation to validate nested array structures
- **Comprehensive Rules**: Built-in validators for common use cases
- **Custom Validation**: Support for custom callback functions
- **Type Safety**: Full PHP 8.2+ type declarations and strict types

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

[](#installation)

Install via Composer:

```
composer require vaibhavpandeyvpz/filtr
```

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

[](#quick-start)

```
