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

ActiveLibrary

crazyfactory/validation
=======================

Helper classes to validate inputs.

2.0.0(3y ago)28[1 PRs](https://github.com/crazyfactory/validation/pulls)GPLPHPPHP ^8.2

Since Oct 10Pushed 11mo ago8 watchersCompare

[ Source](https://github.com/crazyfactory/validation)[ Packagist](https://packagist.org/packages/crazyfactory/validation)[ RSS](/packages/crazyfactory-validation/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (4)Versions (30)Used By (0)

Validation Helpers
==================

[](#validation-helpers)

This repo contains Helper classes used for various Validation tasks

Example usage
-------------

[](#example-usage)

```
use CrazyFactory\Validation\ZipCode\Validator as ZipCodeValidator;
use CrazyFactory\Validation\ZipCode\Sanitizer as ZipCodeSanitizer;

$isValidZipCode = ZipCodeValidator::isValid($zipCode, $countryCode);
// => bool

$zipCode = ZipCodeSanitizer::sanitize($zipCode, $countryCode);
// => a sanitized and valid zip code (original code on failure)
```

Requirements
------------

[](#requirements)

- php: *&gt;7.1*
- composer installed

Scripts
-------

[](#scripts)

Run Tests

```
composer test
```

### Lint

[](#lint)

```
composer lint
```

#### Auto-fix of linting errors

[](#auto-fix-of-linting-errors)

```
composer lint:fix
```

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity85

Battle-tested with a long release history

 Bus Factor3

3 contributors hold 50%+ of commits

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 ~93 days

Recently: every ~20 days

Total

27

Last Release

346d ago

Major Versions

0.9.0 → 1.0.02021-09-14

1.0.4 → 2.0.02023-03-08

PHP version history (2 changes)0.1.0PHP ^7.1

2.0.0PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2908547?v=4)[Jitendra Adhikari](/maintainers/adhocore)[@adhocore](https://github.com/adhocore)

---

Top Contributors

[![adhocore](https://avatars.githubusercontent.com/u/2908547?v=4)](https://github.com/adhocore "adhocore (12 commits)")[![turbo8p](https://avatars.githubusercontent.com/u/26110220?v=4)](https://github.com/turbo8p "turbo8p (10 commits)")[![konthornR](https://avatars.githubusercontent.com/u/10362733?v=4)](https://github.com/konthornR "konthornR (7 commits)")[![paibamboo](https://avatars.githubusercontent.com/u/13611391?v=4)](https://github.com/paibamboo "paibamboo (6 commits)")[![lalitaCF](https://avatars.githubusercontent.com/u/8109587?v=4)](https://github.com/lalitaCF "lalitaCF (5 commits)")[![dacgray](https://avatars.githubusercontent.com/u/12794616?v=4)](https://github.com/dacgray "dacgray (4 commits)")[![Solomonic](https://avatars.githubusercontent.com/u/3539915?v=4)](https://github.com/Solomonic "Solomonic (3 commits)")[![thanorrawat](https://avatars.githubusercontent.com/u/47211217?v=4)](https://github.com/thanorrawat "thanorrawat (3 commits)")[![z3niths](https://avatars.githubusercontent.com/u/16873595?v=4)](https://github.com/z3niths "z3niths (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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