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(3y ago)05MITPHP

Since May 27Pushed 3y ago1 watchersCompare

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

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 22% 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

1452d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a22a78fd0d9c1977d6723930013e182e907d07c04153c0e32a67d073f6599c75?d=identicon)[devmohamedamr](/maintainers/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)
```

###  Alternatives

[webmozart/assert

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

7.6k894.0M1.2k](/packages/webmozart-assert)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)

PHPackages © 2026

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