PHPackages                             shfarzam/data-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. [Mail &amp; Notifications](/categories/mail)
4. /
5. shfarzam/data-validation

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

shfarzam/data-validation
========================

A PHP library for data validation including email, URL, and password validation methods.

v1.0.2(2y ago)17MITPHPPHP &gt;=7.4

Since Nov 27Pushed 2y ago1 watchersCompare

[ Source](https://github.com/shfarzam/data-validation-package)[ Packagist](https://packagist.org/packages/shfarzam/data-validation)[ RSS](/packages/shfarzam-data-validation/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (5)Used By (0)

---

DataValidation
==============

[](#datavalidation)

DataValidation is a PHP package designed to simplify data validation tasks. It provides methods to validate email addresses, URLs, and passwords.

Installation
------------

[](#installation)

You can install this package via Composer:

```
composer require shfarzam/data-validation
```

Usage
-----

[](#usage)

### Email Validation

[](#email-validation)

```
use shfarzam\DataValidation\Validator;

if (Validator::validateEmail('example@example.com')) {
    // Valid email address
} else {
    // Invalid email address
}
```

### URL Validation

[](#url-validation)

```
use shfarzam\DataValidation\Validator;

if (Validator::validateURL('https://www.example.com')) {
    // Valid URL
} else {
    // Invalid URL
}
```

### Password Validation

[](#password-validation)

```
use shfarzam\DataValidation\Validator;

$password = 'securepassword';

// validatePassword(Password, MinLenght, CheckComplexity)
if (Validator::validatePassword($password, 8, True / False)) {
    // Valid password
} else {
    // Invalid password
}
```

About
-----

[](#about)

This package is a lightweight solution for common data validation tasks in PHP projects. It aims to provide a straightforward interface for validating emails, URLs, and passwords without extensive configuration.

License
-------

[](#license)

This project is licensed under the Proprietary License - see the [LICENSE](LICENSE) file for details.

---

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

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

Every ~9 days

Total

3

Last Release

876d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1459f480984add8375b149c6af8a387dd0fd1699e1183befc96bcb111f461624?d=identicon)[shfarzam](/maintainers/shfarzam)

---

Top Contributors

[![shfarzam](https://avatars.githubusercontent.com/u/30744674?v=4)](https://github.com/shfarzam "shfarzam (24 commits)")

---

Tags

urlvalidationemailpassword

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[egulias/email-validator

A library for validating emails against several RFCs

11.6k691.3M307](/packages/egulias-email-validator)[dominicsayers/isemail

Checks an email address against the following RFCs: 3696, 1123, 4291, 5321, 5322

308134.4k3](/packages/dominicsayers-isemail)[arubacao/tld-checker

Top Level Domain (TLD) validation library for PHP

721.6M2](/packages/arubacao-tld-checker)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)[kickbox/kickbox

Official kickbox API library client for PHP

591.0M4](/packages/kickbox-kickbox)[neverbounce/neverbounce-php

This package provides convenient methods to integrate the NeverBounce API into your project.

241.1M3](/packages/neverbounce-neverbounce-php)

PHPackages © 2026

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