PHPackages                             abdulsalamamtech/php-validator - 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. abdulsalamamtech/php-validator

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

abdulsalamamtech/php-validator
==============================

PHP Validator is a PHP OOP library that helps in validating users input and prevent sql injection

1.0.0(2y ago)09MITPHPPHP ^8.0.0

Since Jul 28Pushed 2y ago1 watchersCompare

[ Source](https://github.com/abdulsalamamtech/php-validator)[ Packagist](https://packagist.org/packages/abdulsalamamtech/php-validator)[ Docs](https://github.com/abdulsalamamtech)[ RSS](/packages/abdulsalamamtech-php-validator/feed)WikiDiscussions main Synced 1mo ago

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

**PHP Validator**

PHP Validator is a PHP OOP library that helps in validating users input and prevent sql injection

---

**How to use PHP Validator**

> > **using composer**

Run this on your terminal

composer require abdulsalamamtech/php-validator

```
use Abdulsalamamtech\PhpValidator;

// Load composer dependences
require("./vendor/autoload.php");

$validate = new Validator();
```

> > **dowloading the .zip file**

Directory:

> validator

> > validator.php

> yourproject.php

```

```

---

**Using it to prevent SQL injection**

```

```

---

**Retreiving your data from SQL and displaying it on your page**

```

```

---

**Types of data validation types**

*This are the types of data validation you can use*

```
    $var = "";
    $type = "";

    $types = [
        // for text only
        [] = "text",
        // for number only
        [] = "number",
        // for email
        [] = "email",
        // for text and number only
        [] = "alphanumeric",
        // for text, numbers, and special characters
        [] = "varchar",
        // for password (+234): this must be pass into valid input and output
        [] = "password"
    ];

    // INITIALIZING CLASS
    $validator = new Validator();
    $input = $validator->input($var. $type);
```

---

**Contribution**

You are free to use and contribute to this project, but please make sure you create a new branch.

---

**About this project**

This project is only for PHP validation.

You can check out my github for more intresting project. For details [Visit My github Page](https://github.com/abdulsalamamtech) ![:octocat:](https://github.githubassets.com/images/icons/emoji/octocat.png ":octocat:") .

###  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

1025d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/12989bc44705db0561e815c4b329501735b70ebc41e7b94501078e76822bf711?d=identicon)[abdulsalamamtech](/maintainers/abdulsalamamtech)

---

Top Contributors

[![amtechdigitalnetworks](https://avatars.githubusercontent.com/u/173624495?v=4)](https://github.com/amtechdigitalnetworks "amtechdigitalnetworks (20 commits)")

### Embed Badge

![Health badge](/badges/abdulsalamamtech-php-validator/health.svg)

```
[![Health](https://phpackages.com/badges/abdulsalamamtech-php-validator/health.svg)](https://phpackages.com/packages/abdulsalamamtech-php-validator)
```

###  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)
