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

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

itsharks/validation
===================

validation lib

v1(4y ago)05MITPHP

Since May 27Pushed 4y ago1 watchersCompare

[ Source](https://github.com/mohamedamrmt/validation)[ Packagist](https://packagist.org/packages/itsharks/validation)[ RSS](/packages/itsharks-validation/feed)WikiDiscussions master Synced today

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

validation lib
==============

[](#validation-lib)

validation is a small php validation lib for mysql databases.

installation
------------

[](#installation)

install once with composer:

```
composer require itsharks/validation

```

then add this to your project:

```
require_once "vendor/autoload.php";

$validation = new \Itsharks\Validation\validation();
```

usage
-----

[](#usage)

```
/* required */
$validation->input("inputname")->required();
/* email */
$validation->input("inputname")->email();
/* min */
$validation->input("inputname")->min(number);
/* max */
$validation->input("inputname")->max(number);

// show errors
$validation->showErorr();

// is error
$validation->is_error();

// case
$validation->input("inputname")->required()->min(2)->max(10);
$validation->showErorr();
if($validation->is_error()){
    // statement
}
```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

1498d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/21077439?v=4)[Mohamed Amr ](/maintainers/devmohamedamr)[@devmohamedamr](https://github.com/devmohamedamr)

---

Top Contributors

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

### Embed Badge

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

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

PHPackages © 2026

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