PHPackages                             atelierspierrot/validators - 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. atelierspierrot/validators

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

atelierspierrot/validators
==========================

PHP validators for RFC compliance

v1.1.0(11y ago)11411Apache-2.0HTMLPHP &gt;=5.3.0

Since Oct 16Pushed 10y ago1 watchersCompare

[ Source](https://github.com/atelierspierrot/validators)[ Packagist](https://packagist.org/packages/atelierspierrot/validators)[ Docs](http://github.com/atelierspierrot/validators)[ RSS](/packages/atelierspierrot-validators/feed)WikiDiscussions dev Synced 2mo ago

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

Validators
==========

[](#validators)

[![Build Status](https://camo.githubusercontent.com/295b3c478233e027a5ef52fb88e94baf1a0bd9c0f6ea057a814a03d16e9bb1a2/687474703a2f2f7472617669732d63692e6f72672f6174656c6965727370696572726f742f76616c696461746f72732e7376673f6272616e63683d6d6173746572)](http://travis-ci.org/atelierspierrot/validators)[![Code Climate](https://camo.githubusercontent.com/56ca6321d214cd8722b8756687f697e1359bb9a31ded0da04b2d73430ef56363/687474703a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6174656c6965727370696572726f742f76616c696461746f72732f6261646765732f6770612e737667)](http://codeclimate.com/github/atelierspierrot/validators)[![documentation](https://camo.githubusercontent.com/be7adb4ffdc11ba4b480fe936a1e0d23e2c6b3a70ffea72fa4004a30e74e1bae/687474703a2f2f696d672e6174656c696572732d70696572726f742d7374617469632e66722f726561642d7468652d646f632e737667)](http://docs.ateliers-pierrot.fr/validators/)

A PHP validators package to test RFC's compliance.

Usage
-----

[](#usage)

All validators must implement the `\Validator\ValidatorInterface` which defines two methods:

- `validate( thing )` which must return a boolean value indicating if `thing` passes the validation test
- `sanitize( thing )` which must return a sanitized version of `thing` that must pass the validation test

Example usage of the `\Validator\EmailValidator` (use the same process for each validator):

```
$thing = 'my.address@email.com';

$v = new \Validator\EmailValidator();
if ($v->validate($thing)) {
    // $thing is OK ...

} else {
    // $thing is KO ...

    $new_thing = $v->sanitize($thing);
    // $new_thing must be OK ...
}
```

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

[](#installation)

For a complete information about how to install this package and load its namespace, please have a look at [our *USAGE* documentation](http://github.com/atelierspierrot/atelierspierrot/blob/master/USAGE.md).

If you are a [Composer](http://getcomposer.org/) user, just add the package to the requirements of your project's `composer.json` manifest file:

```
"atelierspierrot/validators": "@stable"
```

You can use a specific release or the latest release of a major version using the appropriate [version constraint](http://getcomposer.org/doc/01-basic-usage.md#package-versions).

Author &amp; License
--------------------

[](#author--license)

> Validators

>

> Copyright (c) 2013-2016 Pierre Cassat and contributors

> Licensed under the Apache 2.0 license.

>

> ---

> Les Ateliers Pierrot - Paris, France

>  -

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~126 days

Total

5

Last Release

4084d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bdcad88f9577d45da703864395c687480896a757e90978502b600d9dd588c247?d=identicon)[picas](/maintainers/picas)

---

Top Contributors

[![e-picas](https://avatars.githubusercontent.com/u/1021199?v=4)](https://github.com/e-picas "e-picas (66 commits)")

---

Tags

validator

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/atelierspierrot-validators/health.svg)

```
[![Health](https://phpackages.com/badges/atelierspierrot-validators/health.svg)](https://phpackages.com/packages/atelierspierrot-validators)
```

###  Alternatives

[respect/validation

The most awesome validation engine ever created for PHP

5.9k37.4M381](/packages/respect-validation)[seld/jsonlint

JSON Linter

1.3k217.8M206](/packages/seld-jsonlint)[composer/spdx-licenses

SPDX licenses list and validation library.

1.4k184.2M25](/packages/composer-spdx-licenses)[opis/json-schema

Json Schema Validator for PHP

64236.9M185](/packages/opis-json-schema)[intervention/validation

Additional validation rules for the Laravel framework

6826.7M8](/packages/intervention-validation)[laminas/laminas-validator

Validation classes for a wide range of domains, and the ability to chain validators to create complex validation criteria

15544.9M188](/packages/laminas-laminas-validator)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
