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

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

langleyfoxall/laravel-validation-rules
======================================

A set of commonly used validation rules, such as UK Postcodes, Phone numbers and more.

v1.0.0(7y ago)25111[1 issues](https://github.com/langleyfoxall/laravel-validation-rules/issues)LGPL-3.0-onlyPHPPHP &gt;=7.1

Since Oct 30Pushed 6y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Laravel Validation Rules
========================

[](#laravel-validation-rules)

A set of commonly used validation rules, such as UK Postcodes, Phone numbers and more.

[![Latest Stable Version](https://camo.githubusercontent.com/c05e99394f1bf9e5ca44f1bf08c98dfe3dd66b4383d93c8876bd256bf18566ff/68747470733a2f2f62616467656e2e6e65742f6769746875622f72656c656173652f6c616e676c6579666f78616c6c2f6c61726176656c2d76616c69646174696f6e2d72756c6573)](https://packagist.org/packages/langleyfoxall/laravel-validation-rules)[![Total Downloads](https://camo.githubusercontent.com/d272a5947f3b040ac30151b99ba4f8554d11d38bfd496a474be63fa9b45a7dc7/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f64742f6c616e676c6579666f78616c6c2f6c61726176656c2d76616c69646174696f6e2d72756c6573)](https://packagist.org/packages/langleyfoxall/laravel-validation-rules)

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

[](#installation)

You can easily install this package by using Composer. Just run the following command from the root of your project.

```
composer require langleyfoxall/laravel-validation-rules

```

Validation Rules
----------------

[](#validation-rules)

> If you wish to make changes to any of the validation rules, submit an issue or pull request so it can be discussed.

NameClass NameDescriptionUK Postal CodesUKPostcodeEasy validation of UK postal codes.UK Phone NumbersUKPhoneNumberValidation of UK mobile phones and landlines.Usage
-----

[](#usage)

You can easily integrate the custom validation rules by calling the class on the individual attributes you wish to validate.

You can read more about custom validation classes [here](https://laravel.com/docs/5.7/validation#custom-validation-rules).

Example:

```
'mobile' => ['nullable', 'string', 'max:255', new UKPhoneNumber()],
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity57

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

2799d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c580cdf7c14898fff179cdfc1085892091d5d2f49d917873a12365af9ac77c93?d=identicon)[Jord-JD](/maintainers/Jord-JD)

![](https://avatars.githubusercontent.com/u/18738623?v=4)[Codebased Ltd](/maintainers/langleyfoxall)[@langleyfoxall](https://github.com/langleyfoxall)

---

Top Contributors

[![ash123456789](https://avatars.githubusercontent.com/u/11010491?v=4)](https://github.com/ash123456789 "ash123456789 (13 commits)")

---

Tags

laravelvalidation

### Embed Badge

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

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

###  Alternatives

[propaganistas/laravel-phone

Adds phone number functionality to Laravel based on Google's libphonenumber API.

3.0k38.3M139](/packages/propaganistas-laravel-phone)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k16.6M109](/packages/bensampo-laravel-enum)[proengsoft/laravel-jsvalidation

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

1.1k2.3M50](/packages/proengsoft-laravel-jsvalidation)[axlon/laravel-postal-code-validation

Worldwide postal code validation for Laravel and Lumen

3883.5M1](/packages/axlon-laravel-postal-code-validation)[galahad/laravel-addressing

Laravel package providing addressing functionality

69328.0k](/packages/galahad-laravel-addressing)[sandermuller/laravel-fluent-validation

Fluent validation rule builders for Laravel

2019.0k2](/packages/sandermuller-laravel-fluent-validation)

PHPackages © 2026

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