PHPackages                             beingnikhilesh/validation - 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. beingnikhilesh/validation

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

beingnikhilesh/validation
=========================

An Awesome Validation Engine for PHP

v0.0.4(1y ago)05MITPHPPHP &gt;=7.0.0

Since Feb 27Pushed 1y ago1 watchersCompare

[ Source](https://github.com/beingnikhilesh/Validation)[ Packagist](https://packagist.org/packages/beingnikhilesh/validation)[ RSS](/packages/beingnikhilesh-validation/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

beingnikhilesh/validation
=========================

[](#beingnikhileshvalidation)

An Awesome Validation Engine for PHP

[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)

Description
-----------

[](#description)

This package provides a powerful and flexible validation engine for PHP applications. It's designed to work seamlessly with PHP 7.0+ and integrates well with CodeIgniter projects. The library offers a clean, fluent syntax for validating various types of data.

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

[](#installation)

You can install the package via composer:

```
composer require beingnikhilesh/validation
```

Requirements
------------

[](#requirements)

- PHP 7.0+
- Respect/Validation library

Usage
-----

[](#usage)

```
# Usage Outline
Validation::Category()->function('value', 'name to display', [Validator Enums], [Additional Parameters])

# Validate a simple string
Validation::String()->validateString('Dan Swarovski', 'First Name');
# Validate with Muted Errors
Validation::String(Validator::muteErrors)->validateReferenceNo('xyz-1234-@', 'Reference No', Validator::AllowNull);
# Validate reference numbers
Validation::String()->validateReferenceNo('xyz-1234-@', 'Reference No', Validator::AllowNull);
# Validate query strings
Validation::String()->isQueryString('x=1&xyz=12&yuo=me&me=you&rs=&XY=', 'Query String', [Validator::AllowNull]);
# Validate addresses (with UTF16 support)
Validation::String()->validateAddress('Sr. No. 90, AXGPM875465465*&^% Facebook Addressॐ', 'Addresses', Validator::UTF16);
```

Features
--------

[](#features)

- Fluent, chainable API for clean code
- Comprehensive validation rules
- UTF-16 support for international character sets
- Customizable error messages
- Mutable error handling
- Support for null values with the `AllowNull` flag
- Query string validation
- Address validation with multi-line support

Integration with Respect/Validation
-----------------------------------

[](#integration-with-respectvalidation)

This package uses the Respect/Validation library for additional validation rules and flexibility.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

Contributing
------------

[](#contributing)

Contributions are welcome! Please feel free to submit a Pull Request.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance44

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity26

Early-stage or recently created project

 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 ~0 days

Total

4

Last Release

439d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6cf0b4286e98736692e27d55812827656aa2ce671c33a099be1b5a0b13648b44?d=identicon)[beingnikhilesh](/maintainers/beingnikhilesh)

---

Top Contributors

[![beingnikhilesh](https://avatars.githubusercontent.com/u/20642249?v=4)](https://github.com/beingnikhilesh "beingnikhilesh (6 commits)")

---

Tags

phpvalidationcodeignitersms

### Embed Badge

![Health badge](/badges/beingnikhilesh-validation/health.svg)

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

###  Alternatives

[progsmile/request-validator

Simple PHP Request Validator

33113.3k1](/packages/progsmile-request-validator)

PHPackages © 2026

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