PHPackages                             hilalahmad/supervalidator - 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. hilalahmad/supervalidator

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

hilalahmad/supervalidator
=========================

The SuperValidator Package is a powerful PHP class designed to simplify and enhance the validation of form data in web applications. It provides a flexible and extensible framework for defining validation rules and generating meaningful error messages

1.0.0(2y ago)15MITPHPPHP ^7.4 | ^8.2

Since Jan 14Pushed 2y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

SuperValidator Documentation
============================

[](#supervalidator-documentation)

The `SuperValidator` Package is a powerful PHP class designed to simplify and enhance the validation of form data in web applications. It provides a flexible and extensible framework for defining validation rules and generating meaningful error messages.

Features
--------

[](#features)

- **Extensible Rule System:** Easily define and extend validation rules for various types of data, such as strings, emails, passwords, dates, and more.
- **Customizable Error Messages:** Customize error messages for each validation rule, allowing you to provide clear and user-friendly feedback to your users.
- **Support for Common Validation Scenarios:** Includes built-in validation rules for common scenarios such as required fields, string length, email format, password strength, and more.
- **Rule Composition:** Compose complex validation scenarios by combining multiple rules for each field.
- **Data Validation:** Validate form data against a set of predefined rules, ensuring data integrity and security.

Getting Started
---------------

[](#getting-started)

### Installation

[](#installation)

Install the `SuperValidator` package via [Composer](https://getcomposer.org/):

```
composer require hilalahmad/supervalidator
```

```
1. required
2. email
3. password
4. string
5. boolen
6. url
7. integer
8. number
9. date
10. min:length
11. max:length
12. image:1024px // depend on your size
13. Much more with custom validation message
```

```
 'email field is required.',
    'email.email' => 'Invalid email address.',
    'password.required' => 'Password is required.',
    'password.confirmed:password_confirmation' => 'Password confirmation does not match.',
    'password.password' => 'Custom error message for the password.',
];
$validator = new SuperValidator($customErrorMessages);

$data = [
    'url' => ['required', 'date'],
    'email' => ['required', 'email'],
    'password' => ['required', 'confirmed:password_confirmation', 'password'],
];
$errors = [];

if ($_SERVER['REQUEST_METHOD'] === 'POST') {
    // Assuming you have the SuperValidator class loaded and instantiated

    if (!$validator->validate($data)) {
        $errors = $validator->getErrors();
    } else {
        // Validation successful, process the form data
        $name = $_POST['name'];
        $email = $_POST['email'];
        $password = $_POST['password'];

        echo "Form submitted successfully!";
    }
}
?>

    Sample Form

    Name:

    Email:

    Password:

    Confirm Password:

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

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

845d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8130aa2a0353184f190feb106a6c11f57afa8872ec9e15e75b782d9e03dc5bde?d=identicon)[hilal ahmad](/maintainers/hilal%20ahmad)

---

Top Contributors

[![hilalahmad0101](https://avatars.githubusercontent.com/u/115874624?v=4)](https://github.com/hilalahmad0101 "hilalahmad0101 (5 commits)")

---

Tags

phpvalidationphp-validation

### Embed Badge

![Health badge](/badges/hilalahmad-supervalidator/health.svg)

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

###  Alternatives

[yorcreative/laravel-argonaut-dto

Argonaut is a lightweight Data Transfer Object (DTO) package for Laravel that supports nested casting, recursive serialization, and validation out of the box. Ideal for service layers, APIs, and clean architecture workflows.

1062.8k1](/packages/yorcreative-laravel-argonaut-dto)[bitapps/wp-validator

WordPress Validation and Sanitization Library

127.4k1](/packages/bitapps-wp-validator)

PHPackages © 2026

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