PHPackages                             flikore/validator - 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. flikore/validator

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

flikore/validator
=================

A simple validation library

v0.5.2(12y ago)038PHPPHP &gt;=5.3.0

Since Mar 1Pushed 3y ago1 watchersCompare

[ Source](https://github.com/flikore/validator)[ Packagist](https://packagist.org/packages/flikore/validator)[ RSS](/packages/flikore-validator/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (11)Used By (0)

Flikore Validator
=================

[](#flikore-validator)

[*A simple validation library*](http://flikore.github.io/validator)

[![Build Status](https://camo.githubusercontent.com/a574a4c5f023f5d51efbf5ddbdb4ed60bf0d1ff79cd0c3e45733e0b37efa87d3/68747470733a2f2f7472617669732d63692e6f72672f666c696b6f72652f76616c696461746f722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/flikore/validator)[![Coverage Status](https://camo.githubusercontent.com/da835c4128d6d6cd8f442481b4cf8435fc8af3dc89f1201660c91bb5bb177dce/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f666c696b6f72652f76616c696461746f722f62616467652e706e673f6272616e63683d6d6173746572)](https://coveralls.io/r/flikore/validator?branch=master)

*Flikore Validator* is a validation library for PHP aimed to be simple, powerful, object oriented and extensible. It also focus on code and objects reuse, both in the library itself and in the projects that rely on the Validator.

There are many others validators for PHP, of course. [Respect/Validation](https://github.com/Respect/Validation), for example, is very thorough and has a lot of validators ready to be used. The system for error messages, however, is problematic and was one of the reasons for Flikore Validator to arise. [Valitron](https://github.com/vlucas/valitron) is very simple and minimalistic, but it validates only arrays (not single values) and doesn't work with objects like Respect and Flikore do.

Instalation
-----------

[](#instalation)

### Composer

[](#composer)

[Composer](http://getcomposer.org) is the preferred method to install this validator. Simply add to your `composer.json`:

```
{
    "require": {
        "flikore/validator": "dev-master"
    }
}
```

Run `composer install`, then include the autoload file in your project:

```
