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

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

5ichong/validator
=================

The data format validation.

v1.0.0(6y ago)14.4kApache-2.0PHPPHP &gt;=5.5.0

Since Jun 12Pushed 5y agoCompare

[ Source](https://github.com/daxiong123/validator)[ Packagist](https://packagist.org/packages/5ichong/validator)[ RSS](/packages/5ichong-validator/feed)WikiDiscussions master Synced 2mo ago

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

Validator - The data format validation
======================================

[](#validator---the-data-format-validation)

[![Build Status](https://camo.githubusercontent.com/efcf09a1adf1d28ac4f217790d2bf81f15967e1d79b64fbe70f5f0f0799f34c8/68747470733a2f2f7472617669732d63692e6f72672f646178696f6e673132332f76616c696461746f722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/daxiong123/validator)

---

- [Installation](#installation)
- [Requirements](#requirements)
- [Quick Start and Examples](#quick-start-and-examples)

---

### Installation

[](#installation)

To install Validator, simply:

```
$ composer require 5ichong/validator

```

For latest commit version:

```
$ composer require 5ichong/validator @dev

```

### Requirements

[](#requirements)

Validator works with PHP 5.6, 7.0, 7.1.

### Quick Start and Examples

[](#quick-start-and-examples)

```
require __DIR__ . '/vendor/autoload.php';

use \Aichong\Validator;

$curl = new Validator();
$validator->validate(['test' => ''], ['test' => 'required'], ['test' => 'empty']);
$validator->validate(['test' => '1'], ['test' => 'equals:1'], ['test' => 'noequals']);
$validator->validate(['test' => '123'], ['test' => 'length:3'], ['test' => 'nolength']);
$validator->validate(['test' => '15821789646'], ['test' => 'phone'], ['test' => 'nophone'])
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

2533d ago

### Community

Maintainers

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

---

Top Contributors

[![daxiong123](https://avatars.githubusercontent.com/u/2648157?v=4)](https://github.com/daxiong123 "daxiong123 (22 commits)")

---

Tags

checkvalidatorvalidate

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/5ichong-validator/health.svg)

```
[![Health](https://phpackages.com/badges/5ichong-validator/health.svg)](https://phpackages.com/packages/5ichong-validator)
```

###  Alternatives

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[wixel/gump

A fast, extensible &amp; stand-alone PHP input validation class that allows you to validate any data.

1.2k1.3M30](/packages/wixel-gump)[sadegh19b/laravel-persian-validation

A comprehensive Laravel validation package for Persian text, numbers, dates, and Iranian national identifiers

18293.8k1](/packages/sadegh19b-laravel-persian-validation)[awurth/slim-validation

A wrapper around the respect/validation PHP validation library for easier error handling and display

65378.4k9](/packages/awurth-slim-validation)[romeoz/rock-validate

Flexible validator for PHP with I18N.

251.7k6](/packages/romeoz-rock-validate)

PHPackages © 2026

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