PHPackages                             eilander/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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. eilander/validator

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

eilander/validator
==================

Laravel 5 validator package.

5.6.1(7y ago)0146MITPHPPHP &gt;=5.5.9

Since Feb 16Pushed 7y agoCompare

[ Source](https://github.com/markeilander/validator)[ Packagist](https://packagist.org/packages/eilander/validator)[ RSS](/packages/eilander-validator/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (1)Versions (19)Used By (0)

Laravel 5 Validator
===================

[](#laravel-5-validator)

### Table of contents

[](#table-of-contents)

\[TOC\]

Usage
-----

[](#usage)

This package is based on laravel validation:

### Create a validator

[](#create-a-validator)

```
use Eilander\Validator\LaravelValidator as Validator;

class UpdateUserValidator extends Validator
{
    protected static $rules = [
        'name'     => 'required',
        'email'    => 'required|email',
        'msg'      => 'required'
    ];
}
```

### Custom Error Messages

[](#custom-error-messages)

You may use custom error messages for validation instead of the defaults

```
protected static $messages = [
    'required' => 'The :attribute field is required.',
];
```

Or, you may wish to specify a custom error messages only for a specific field.

```
protected static $messages = [
    'email.required' => 'We need to know your e-mail address!',
];
```

### Using the Validator

[](#using-the-validator)

```
use \Eilander\Validator\Exceptions\ValidatorException;

class PostsController extends BaseController {

    /**
     * @var PostRepository
     */
    protected $repository;

    /**
     * @var PostValidator
     */
    protected $validator;

    public function __construct(PostRepository $repository, PostValidator $validator){
        $this->repository = $repository;
        $this->validator  = $validator;
    }

    public function store()
    {
        if ($this->validator->fails($request->all())) {
            return redirect('post/create')
                        ->withErrors($validator)
                        ->withInput();
        }

        // do something
    }
}
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity67

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

Recently: every ~91 days

Total

17

Last Release

2844d ago

Major Versions

v1.0.9 → v5.4.02017-01-31

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2378970?v=4)[markeilander](/maintainers/markeilander)[@markeilander](https://github.com/markeilander)

---

Top Contributors

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

---

Tags

laravelvalidatorlaravel5.2

### Embed Badge

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

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

###  Alternatives

[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21318.6k3](/packages/ecotone-laravel)[carsdotcom/laravel-json-schema

Json Schema validation for Laravel projects

1043.3k6](/packages/carsdotcom-laravel-json-schema)[laravel-validation-rules/us-state

Validate US States and Canada Provinces

16181.0k](/packages/laravel-validation-rules-us-state)

PHPackages © 2026

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