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

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

cohensive/validation
====================

Extra functionality for Laravel 5 Validator.

v5.0.0(11y ago)1413.9k3[1 issues](https://github.com/KaneCohen/laravel-validation/issues)BSD-3-ClausePHPPHP &gt;=5.3.0

Since Aug 13Pushed 10y ago1 watchersCompare

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

READMEChangelogDependencies (7)Versions (9)Used By (0)

Extended Laravel Validation
===========================

[](#extended-laravel-validation)

This class extends Laravel Validation package changing some basic functionality to provide validation of data with wildcards. How do wildcrads work:

[![wildcrads](https://camo.githubusercontent.com/cfcd492f34a552a8addd83413228a3c61d2365713fb3907aa6a019eab6eeb40a/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3537383435352f3434383331352f63366465376366342d623233652d313165322d393762302d6161303239366339326432322e6a7067)](https://camo.githubusercontent.com/cfcd492f34a552a8addd83413228a3c61d2365713fb3907aa6a019eab6eeb40a/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3537383435352f3434383331352f63366465376366342d623233652d313165322d393762302d6161303239366339326432322e6a7067)

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

[](#installation)

Add following line to your `composer.json` file:

For Laravel 4.x

```
"cohensive/validation": "4.1.*"

```

For Laravel 5.x

```
"cohensive/validation": "5.0.*"

```

Then run `composer install` or `composer update` to download it and autoload.

Once package is installed you need to register it as a service provider. Find `app.php` file in your `config` deirectory. First, since this package extends default Validation, you need to comment out or remove this line from `providers` array: `'Illuminate\Validation\ValidationServiceProvider'`.

Now in the same `providers` array you need to add new package:

```
'providers' => array(

    //...
    'Cohensive\Validation\ValidationServiceProvider',
    //...

)

```

No need to add anything in `aliases`.

Usage
-----

[](#usage)

Mostly the same as in core Validation. When it comes to validation with wildcrads here's an example:

```
$input = array('input' => array('foo', 'bar', 'baz'));
$rules = array(
    'input:*' => 'Alpha|Min:3'
);

$v = Validator::make($input, $rules);
```

Shall we go deeper?

```
$input = array('users' => array(
    0 => array(
        'name' => 'Mike',
        'age'  =>  30
    ),
    1 => array(
        'name' => 'Rob',
        'age'  => '28'
    )
));

$rules = array(
    'users:*:name' => 'Alpha|Min:3',
    'users:*:age'  => 'Numeric|Min:18|Max:80'
);

$v = Validator::make($input, $rules);
```

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

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

Recently: every ~215 days

Total

8

Last Release

3738d ago

Major Versions

1.0.2 → 4.0.x-dev2013-11-25

4.0.0 → v5.0.02015-02-16

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/578455?v=4)[Kane Cohen](/maintainers/KaneCohen)[@KaneCohen](https://github.com/KaneCohen)

---

Top Contributors

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

---

Tags

laravelvalidation

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[schuppo/password-strength

This package provides a validator for ensuring strong passwords in Laravel 4 applications.

1442.8M1](/packages/schuppo-password-strength)[timacdonald/rule-builder

A fluent rule builder for Laravel validation rule generation.

1017.8k](/packages/timacdonald-rule-builder)[stuyam/laravel-phone-validator

A phone validator for Laravel using the free Twilio phone lookup service.

2861.7k](/packages/stuyam-laravel-phone-validator)[skysplit/laravel5-intl-translation

Laravel 5 package for better translation syntax using php-intl extension

10106.3k](/packages/skysplit-laravel5-intl-translation)[pacerit/laravel-polish-validation-rules

Simple Polish Validation rules for Laravel and Lumen framework

1452.9k](/packages/pacerit-laravel-polish-validation-rules)[laravel-validation-rules/ip

Validate if an ip address is public or private.

1629.7k](/packages/laravel-validation-rules-ip)

PHPackages © 2026

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