PHPackages                             mvaliolahi/seequest - 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. mvaliolahi/seequest

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

mvaliolahi/seequest
===================

Another library to validate requests

v0.0.2(8y ago)247[3 issues](https://github.com/mvaliolahi/seequest/issues)PHP

Since Oct 30Pushed 7y ago1 watchersCompare

[ Source](https://github.com/mvaliolahi/seequest)[ Packagist](https://packagist.org/packages/mvaliolahi/seequest)[ Docs](https://mvaliolahi.ir)[ RSS](/packages/mvaliolahi-seequest/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

PHP Request Validator
---------------------

[](#php-request-validator)

[![Latest Stable Version](https://camo.githubusercontent.com/dfc1653ae43715bc9c67d09f1c65cfb3371e4e9c3772da2e75627149a3d5ae54/68747470733a2f2f706f7365722e707567782e6f72672f6d76616c696f6c6168692f73656571756573742f762f737461626c65)](https://packagist.org/packages/mvaliolahi/scheduler)[![Total Downloads](https://camo.githubusercontent.com/75b69285e67666dfcc5ef4f189d0f6a98eef6bed32a6a6b4a4330cc165bf1c62/68747470733a2f2f706f7365722e707567782e6f72672f6d76616c696f6c6168692f73656571756573742f646f776e6c6f616473)](https://packagist.org/packages/mvaliolahi/seequest)[![Build Status](https://camo.githubusercontent.com/c35bcb15d6115c825b5e903c8fab57e8c21f236b391d42d523730240434e52da/68747470733a2f2f7472617669732d63692e6f72672f6d76616c696f6c6168692f73656571756573742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/mvaliolahi/seequest)[![StyleCI](https://camo.githubusercontent.com/cdd782ab3be7e28938f9b4e8e7d3718964e19dd8fc56119229f2340fd822741e/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3130383832323035352f736869656c643f7374796c653d666c6174)](https://github.styleci.io/repos/108822055)[![PHP-Eye](https://camo.githubusercontent.com/e8504507411bde3cab284e20e79282ea6651daef13a00cf3d1d076ac6a410a13/68747470733a2f2f7068702d6579652e636f6d2f62616467652f6d76616c696f6c6168692f73656571756573742f7465737465642e7376673f7374796c653d666c6174)](https://php-eye.com/package/mvaliolahi/seequest)

Validate requests in easiest way!

#### Install

[](#install)

```
`composer require mvaliolahi/seequest`

```

##### usage

[](#usage)

```
$validator = new SeeQuest('en');

$result = $validation->check($request, [
    'name' => 'required',
    'email' => 'required|email'
    'age'=> 'required|between:1,25',
    'score' => 'min:10',
    'high_score'=> 'max:600'
]);

$err = $validator->getErrors();
```

##### Create custom validator

[](#create-custom-validator)

Create a class and extends from `Mvaliolahi\SeeQuest\Contracts\Validator`, it done!

just implement validate() method.

you have access to :

```
Request => $this->request
Attribute => $this->attribute
Value => $this->value
Rule => $this->rule
Rule-Option => $this->option
```

###### example:

[](#example)

```
