PHPackages                             mtrajano/laravel-validations - 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. mtrajano/laravel-validations

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

mtrajano/laravel-validations
============================

Common Laravel Validation Rules

3309PHP

Since Nov 19Pushed 8y ago2 watchersCompare

[ Source](https://github.com/mtrajano/laravel-validations)[ Packagist](https://packagist.org/packages/mtrajano/laravel-validations)[ RSS](/packages/mtrajano-laravel-validations/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#common-laravel-validation-rules)

A set of common validation rules that I found myself using throughout a lot of my applications. Laravel's Validator will be extended with the set of rules so no configuration is required.

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

[](#installation)

Simply install via composer:

```
composer require mtrajano/laravel-validations
```

For Laravel &lt;=5.4, make sure to also add the service provider to your `config/app.php` class:

```
Mtrajano\LaravelValidations\LaravelValidationsServiceProvider::class

```

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

[](#validation-rules)

- **zipcode**: US ZIP and ZIP+4 formats
- **latitude**: Any float value between -90 and 90, inclusive
- **longitude**: Any float between between -180 and 180, inclusive
- **routing**: Must be a valid routing number passing the ABA checksum
- **countrycode**: Valid country code (either ISO2 or ISO3 formats)
- **phone**: Valid US phone number
- **uuid**: A valid Universally Unique ID according to RFC 4122

Contributing
------------

[](#contributing)

Pull requests and issues are welcome!

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/5d7e9becf8723f4d38dd765a3931e0f09c68c34e7f761fd4befbb7615ab33edd?d=identicon)[mtrajano](/maintainers/mtrajano)

---

Top Contributors

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

---

Tags

laravellaravel-packagelaravel5-packagevalidationvalidation-library

### Embed Badge

![Health badge](/badges/mtrajano-laravel-validations/health.svg)

```
[![Health](https://phpackages.com/badges/mtrajano-laravel-validations/health.svg)](https://phpackages.com/packages/mtrajano-laravel-validations)
```

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