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

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

yandjin/custom-validation
=========================

small and simple validation package inspired by laravel validation, no dependencies

v1.0(6y ago)04MITPHP

Since Mar 5Pushed 6y ago1 watchersCompare

[ Source](https://github.com/YanDjin/CustomValidation)[ Packagist](https://packagist.org/packages/yandjin/custom-validation)[ RSS](/packages/yandjin-custom-validation/feed)WikiDiscussions master Synced today

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Small and simple validation package inspired by laravel validation, no dependencies
===================================================================================

[](#small-and-simple-validation-package-inspired-by-laravel-validation-no-dependencies)

how to install :
----------------

[](#how-to-install-)

```
composer require yandjin/custom-validation
```

how to use
----------

[](#how-to-use)

use the following namespace :

```
use YanDjin\Validation\CustomValidation;
```

the validation returns true or false :

```
$arrayOfData = [
    "name" => "YanDjin",
    "age" => 26
];

if(!CustomValidation::validateData($arrayOfData, [
    "name" => "characters",
    "age" => "numeric|min:18" // pipe the validation rules (: for parameters ) or use array "age" => ["numeric", "min" => 18]
]) {
    // returns the fields not passing the validation and the errors
    return CustomValidation::getErrorsMessagesAsString();
}
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

2256d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/46947921?v=4)[YanDjin](/maintainers/YanDjin)[@YanDjin](https://github.com/YanDjin)

---

Top Contributors

[![YanDjin](https://avatars.githubusercontent.com/u/46947921?v=4)](https://github.com/YanDjin "YanDjin (1 commits)")

---

Tags

laravelvalidation

### Embed Badge

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

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

###  Alternatives

[schuppo/password-strength

This package provides a validator for ensuring strong passwords in Laravel 4 applications.

1432.7M1](/packages/schuppo-password-strength)[timacdonald/rule-builder

A fluent rule builder for Laravel validation rule generation.

1027.7k](/packages/timacdonald-rule-builder)[stuyam/laravel-phone-validator

A phone validator for Laravel using the free Twilio phone lookup service.

2861.3k](/packages/stuyam-laravel-phone-validator)[skysplit/laravel5-intl-translation

Laravel 5 package for better translation syntax using php-intl extension

10106.2k](/packages/skysplit-laravel5-intl-translation)[pacerit/laravel-polish-validation-rules

Simple Polish Validation rules for Laravel and Lumen framework

1449.9k](/packages/pacerit-laravel-polish-validation-rules)[laravel-validation-rules/ip

Validate if an ip address is public or private.

1729.7k](/packages/laravel-validation-rules-ip)

PHPackages © 2026

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