PHPackages                             spe11/laravel-validator - 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. spe11/laravel-validator

ActiveLibrary

spe11/laravel-validator
=======================

Helper package for laravel validation rules

03PHP

Since Apr 24Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Spe11/laravel-validator)[ Packagist](https://packagist.org/packages/spe11/laravel-validator)[ RSS](/packages/spe11-laravel-validator/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel 8 validation helper
===========================

[](#laravel-8-validation-helper)

---

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

[](#installation)

```
composer require spe11/laravel-validator "*"

```

Usage
-----

[](#usage)

This helper provides to helper function for rules creation: rules(), where u can pass single field validators and field() for validator creation You will get IDE autocomplete and php-doc commentaries for methods from official documentation

Before:

```
    public function rules()
    {
        return [
            'id' => 'required|exists:App\Models\Model:id',
            'name' => ['string', 'max:5', new CustomRule],
        ];
    }
```

After:

```
    public function rules()
    {
        return rules(
            field('id')->required()->exists(Model::class, 'id'),
            field('name')->string()->max(5)->custom(new CustomRule),
        );
    }
```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

 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/c8f0e39011f0f3b4aed49143fc642b67d941f2064dcbe63724212b198104539c?d=identicon)[Spe11](/maintainers/Spe11)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/spe11-laravel-validator/health.svg)

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

PHPackages © 2026

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