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

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

nodes/validation
================

Makes it easier to work with validation in Laravel

1.0.8(6y ago)313.6k21MITPHP

Since Jan 7Pushed 6y ago1 watchersCompare

[ Source](https://github.com/nodes-php/nodes-php-validation)[ Packagist](https://packagist.org/packages/nodes/validation)[ Docs](http://nodesagency.com)[ RSS](/packages/nodes-validation/feed)WikiDiscussions master Synced 2mo ago

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

Validation
----------

[](#validation)

A validation manager made more flexible validators in [Laravel](https://laravel.com/docs)

[![Total downloads](https://camo.githubusercontent.com/4d50f2eaa3db880acd3744e8394efd124e1c21ffcf5d0f28c4495a62d3b56934/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e6f6465732f76616c69646174696f6e2e737667)](https://packagist.org/packages/nodes/validation)[![Monthly downloads](https://camo.githubusercontent.com/b9a744e267a9666ea3d154acea9c34390ed73209c4837c6443e6d1b218ea119c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6e6f6465732f76616c69646174696f6e2e737667)](https://packagist.org/packages/nodes/validation)[![Latest release](https://camo.githubusercontent.com/91121260333f8b899a7fa53480d83f82f7ec10949decf373c9e0a08a9b751978/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6f6465732f76616c69646174696f6e2e737667)](https://packagist.org/packages/nodes/validation)[![Open issues](https://camo.githubusercontent.com/138528ded2b82f399293be8b4e6e27418951248afdd4dea506acf2da40ebdb50/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6e6f6465732d7068702f76616c69646174696f6e2e737667)](https://github.com/nodes-php/validation/issues)[![License](https://camo.githubusercontent.com/9b7a97d25cb6beeb8668b204726d8da5b7885029cf16168a4c4b75fb4421bdc6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6e6f6465732f76616c69646174696f6e2e737667)](https://packagist.org/packages/nodes/validation)[![Star repository on GitHub](https://camo.githubusercontent.com/57a6232d64b161f304bf6023f83b27f7954f0ffbdf5bbf3e049579f1354d870c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6e6f6465732d7068702f76616c69646174696f6e2e7376673f7374796c653d736f6369616c266c6162656c3d53746172)](https://github.com/nodes-php/validation/stargazers)[![Watch repository on GitHub](https://camo.githubusercontent.com/cccaab4f3add31f0ac294ee291181ec15c6adb41e8c0eefbfcffcc14fe0975b4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f77617463686572732f6e6f6465732d7068702f76616c69646174696f6e2e7376673f7374796c653d736f6369616c266c6162656c3d5761746368)](https://github.com/nodes-php/validation/watchers)[![Fork repository on GitHub](https://camo.githubusercontent.com/e45fed6ad94bb3461ab5a404978537627c6d36408404054d612a313a2effeac9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f6e6f6465732d7068702f76616c69646174696f6e2e7376673f7374796c653d736f6369616c266c6162656c3d466f726b)](https://github.com/nodes-php/validation/network)[![StyleCI](https://camo.githubusercontent.com/c60ff02b3c4e90047aea16e6135645d66691fd7f693ffc6e1b9df821c6f521ee/68747470733a2f2f7374796c6563692e696f2f7265706f732f34393139343833302f736869656c64)](https://styleci.io/repos/49194830)

📝 Introduction
--------------

[](#-introduction)

Validation is something we take quite serious in [Nodes](http://nodesagency.com) which means we've had cases where the default Laravel validator simply doesn't cut it.

Therefore we've created this little neat package, which makes it super easy to create your own validator and add your own custom rules. By default this package uses our own Validator with our own custom rules, but you can easily swap it out with your own stuff.

📦 Installation
--------------

[](#-installation)

To install this package you will need:

- Laravel 5.1+
- PHP 5.5.9+

You must then modify your `composer.json` file and run `composer update` to include the latest version of the package in your project.

```
"require": {
    "nodes/validation": "^1.0"
}
```

Or you can run the composer require command from your terminal.

```
composer require nodes/validation:^1.0
```

🔧 Setup
-------

[](#-setup)

> In Laravel 5.5 or above, service providers and aliases are [automatically registered](https://laravel.com/docs/5.5/packages#package-discovery). If you're using Laravel 5.5 or above, skip ahead directly to *Publish config files*.

Setup service provider in `config/app.php`

```
Nodes\Validation\ServiceProvider::class
```

Publish config files

```
php artisan vendor:publish --provider="Nodes\Validation\ServiceProvider"
```

If you want to overwrite any existing config files use the `--force` parameter

```
php artisan vendor:publish --provider="Nodes\Validation\ServiceProvider" --force
```

⚙ Usage
-------

[](#-usage)

Create a new validator and make it extend `Nodes\Validation\Validator`.

At a later time, we'll update the documentation with details about each rule this package comes with out-of-the-box. But for now, we recommend you to take a look in the source code and read the DocBlock of each method.

Check out the available rules in the [src/Rules](https://github.com/nodes-php/validation/tree/master/src/Rules) directory.

🏆 Credits
---------

[](#-credits)

This package is developed and maintained by the PHP team at [Nodes Agency](http://nodesagency.com)

[![Follow Nodes PHP on Twitter](https://camo.githubusercontent.com/a898a5b14227bafa0c17c43be4f67460fe2b1dc3b88627d7b959e7fae4256a45/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f666f6c6c6f772f6e6f6465737068702e7376673f7374796c653d736f6369616c)](https://twitter.com/nodesphp) [![Tweet Nodes PHP](https://camo.githubusercontent.com/8c1a307180498b3bb360cf73e63da1bfa3afc0306f601be021acd1e85d2bb4e4/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f75726c2f687474702f6e6f6465737068702e7376673f7374796c653d736f6369616c)](https://twitter.com/nodesphp)

📄 License
---------

[](#-license)

This package is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 57.1% 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 ~106 days

Recently: every ~312 days

Total

15

Last Release

2282d ago

Major Versions

0.1.5 → 1.0.02016-06-07

### Community

Maintainers

![](https://www.gravatar.com/avatar/3aaee2c2b7632254faa8a589817712bdab2c7d46778fb26994eef75b20ec9c08?d=identicon)[nodes](/maintainers/nodes)

---

Top Contributors

[![Casperhr](https://avatars.githubusercontent.com/u/1279756?v=4)](https://github.com/Casperhr "Casperhr (12 commits)")[![carmenioanamihaila](https://avatars.githubusercontent.com/u/20821982?v=4)](https://github.com/carmenioanamihaila "carmenioanamihaila (3 commits)")[![0hsn](https://avatars.githubusercontent.com/u/3197377?v=4)](https://github.com/0hsn "0hsn (2 commits)")[![rugaard](https://avatars.githubusercontent.com/u/179868?v=4)](https://github.com/rugaard "rugaard (2 commits)")[![rasmusebbesen](https://avatars.githubusercontent.com/u/944158?v=4)](https://github.com/rasmusebbesen "rasmusebbesen (1 commits)")[![Zeneo](https://avatars.githubusercontent.com/u/5598307?v=4)](https://github.com/Zeneo "Zeneo (1 commits)")

---

Tags

laravelvalidationnodes

### Embed Badge

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

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

###  Alternatives

[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)[carsdotcom/laravel-json-schema

Json Schema validation for Laravel projects

1036.7k3](/packages/carsdotcom-laravel-json-schema)

PHPackages © 2026

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