PHPackages                             mjarestad/filtry - 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. [Search &amp; Filtering](/categories/search)
4. /
5. mjarestad/filtry

ActiveLibrary[Search &amp; Filtering](/categories/search)

mjarestad/filtry
================

Filter and sanitize input data in Laravel 4/5 or as a standalone package.

v1.1.3(9y ago)13214.5k↓25%3MITPHPPHP &gt;=5.6.0

Since Apr 28Pushed 9y ago2 watchersCompare

[ Source](https://github.com/mjarestad/Filtry)[ Packagist](https://packagist.org/packages/mjarestad/filtry)[ RSS](/packages/mjarestad-filtry/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (9)Used By (0)

\#Filtry

[![Latest Stable Version](https://camo.githubusercontent.com/cc34d08e7ba7a2830d3d17d63987ac7baca3a9432036b1ad25e9354778017790/68747470733a2f2f706f7365722e707567782e6f72672f6d6a617265737461642f66696c7472792f762f737461626c65)](https://packagist.org/packages/mjarestad/filtry)[![Build Status](https://camo.githubusercontent.com/bc6e1a5f38e522f9791b8fcead29b0a7d7dcd7fe1341cb14748fd49e9e9856d8/68747470733a2f2f6170692e7472617669732d63692e6f72672f6d6a617265737461642f46696c7472792e737667)](https://api.travis-ci.org/mjarestad/Filtry)[![License](https://camo.githubusercontent.com/3facf38417dcc743bf5e1bfe46e064450de94f75d7bb5daf99c17363923b3235/68747470733a2f2f706f7365722e707567782e6f72672f6d6a617265737461642f66696c7472792f6c6963656e7365)](https://packagist.org/packages/mjarestad/filtry)

A package to filter and sanitize input data in Laravel 4/5 or as a standalone package. This is perfect to use with the Laravel 4 Validation class to filter data before validation. You can easily extend and create your own custom filters.

\##Requirements php version &gt; 5.6

\##Installation

```
composer require mjarestad/filtry
```

### Laravel

[](#laravel)

Add the ServiceProvider to the providers array in `app/config/app.php`

```
Laravel 5:
Mjarestad\Filtry\FiltryServiceProviderLaravel5::class,

Laravel 4:
'Mjarestad\Filtry\FiltryServiceProvider',

```

Add the Facade to the aliases array in `app/config/app.php`

```
'Filtry'  => 'Mjarestad\Filtry\Facades\Filtry',

```

\##Usage

\###Laravel 5

\####Form Requests

Extend your Form Request Validation classes with the provided Filtry Request to filter input data before validation.

```
