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

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

lukaswhite/validation-rules
===========================

A collection of validation rules

2.0(3y ago)012MITPHPCI failing

Since Jan 1Pushed 3y ago1 watchersCompare

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

READMEChangelogDependencies (4)Versions (5)Used By (0)

Validation Rules
================

[](#validation-rules)

A collection of validation rules. It's highly likely I'll keep adding to it.

They're designed to be used with Laravel, but so long as you don't mind having `illuminate\support` as a dependency, you could also use them outside of it.

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

[](#installation)

```
composer require lukaswhite/validation-rules
```

Available Rules
---------------

[](#available-rules)

### Geo

[](#geo)

- Latitude
- Longitude
- UK Postcodes
- US Zipcodes

### Colors

[](#colors)

- Hex colors
- RGB colors
- RGBa Colors

### Dates

[](#dates)

- Time (HH:mm)

### Web

[](#web)

- Slugs

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

Total

4

Last Release

1360d ago

Major Versions

0.0.1 → 1.02021-05-17

1.0 → 2.02022-08-23

### Community

Maintainers

![](https://www.gravatar.com/avatar/f1bd633ffdf0f66a73a288c4edcacfa43d214cd95a53384c6fe5ea4b3554dd9d?d=identicon)[lukaswhite](/maintainers/lukaswhite)

---

Top Contributors

[![lukaswhite](https://avatars.githubusercontent.com/u/999014?v=4)](https://github.com/lukaswhite "lukaswhite (3 commits)")

---

Tags

laravelphpvalidation

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-honeypot

Preventing spam submitted through forms

1.6k6.0M60](/packages/spatie-laravel-honeypot)[proengsoft/laravel-jsvalidation

Validate forms transparently with Javascript reusing your Laravel Validation Rules, Messages, and FormRequest

1.1k2.3M49](/packages/proengsoft-laravel-jsvalidation)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[axlon/laravel-postal-code-validation

Worldwide postal code validation for Laravel and Lumen

3853.3M1](/packages/axlon-laravel-postal-code-validation)[sunspikes/clamav-validator

Custom Laravel 5 anti-virus validator for file uploads.

3651.8M3](/packages/sunspikes-clamav-validator)[laravel-validation-rules/credit-card

Validate credit card number, expiration date, cvc

2412.2M5](/packages/laravel-validation-rules-credit-card)

PHPackages © 2026

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