PHPackages                             egeniq/laravel-rules - 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. egeniq/laravel-rules

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

egeniq/laravel-rules
====================

Helper function to simplify defining validation rules of mixed types

1.0.0(8y ago)015MITPHPPHP ^7.0

Since Feb 9Pushed 8y ago8 watchersCompare

[ Source](https://github.com/egeniq/laravel-rules)[ Packagist](https://packagist.org/packages/egeniq/laravel-rules)[ Docs](https://github.com/egeniq/laravel-rules)[ RSS](/packages/egeniq-laravel-rules/feed)WikiDiscussions develop Synced 2w ago

READMEChangelogDependencies (3)Versions (4)Used By (0)

laravel-rules
=============

[](#laravel-rules)

Helper function to simplify defining validation rules of mixed types

The helper enables you to use mixed format when defining validation rules in a controller. This is especially helpful when you want to add a custom rule to a list of rules that are in the string format.

```
// Before
$validation = validator($data, [
    'id' => 'required|integer',
    'amount' => [
        'required',
        'integer',
        new MyCustomRule()
    ],
]);

// After
$validation = validator($data, [
    'id' => 'required|integer',
    'amount' => rules('required|integer', new MyCustomRule()),
]);
```

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

[](#installation)

```
composer require egeniq/laravel-rules

```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 80% 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

Unknown

Total

1

Last Release

3062d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/360150?v=4)[Richard Tuin](/maintainers/rtuin)[@rtuin](https://github.com/rtuin)

![](https://avatars.githubusercontent.com/u/930149?v=4)[Dawn Technology Mobile (formerly Egeniq)](/maintainers/egeniq)[@egeniq](https://github.com/egeniq)

![](https://avatars.githubusercontent.com/u/353795?v=4)[Peter Verhage](/maintainers/petercv)[@petercv](https://github.com/petercv)

---

Top Contributors

[![rtuin](https://avatars.githubusercontent.com/u/360150?v=4)](https://github.com/rtuin "rtuin (8 commits)")[![petercv](https://avatars.githubusercontent.com/u/353795?v=4)](https://github.com/petercv "petercv (2 commits)")

---

Tags

laravelvalidation

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/egeniq-laravel-rules/health.svg)

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

###  Alternatives

[proengsoft/laravel-jsvalidation

Validate forms transparently with Javascript reusing your Laravel Validation Rules, Messages, and FormRequest

1.1k2.3M50](/packages/proengsoft-laravel-jsvalidation)[wendelladriel/laravel-validated-dto

Data Transfer Objects with validation for Laravel applications

761621.7k17](/packages/wendelladriel-laravel-validated-dto)[laravel-validation-rules/credit-card

Validate credit card number, expiration date, cvc

2422.3M6](/packages/laravel-validation-rules-credit-card)[axlon/laravel-postal-code-validation

Worldwide postal code validation for Laravel and Lumen

3883.5M1](/packages/axlon-laravel-postal-code-validation)[illuminatech/validation-composite

Allows uniting several validation rules into a single one for easy re-usage

180517.4k](/packages/illuminatech-validation-composite)[galahad/laravel-addressing

Laravel package providing addressing functionality

69328.0k](/packages/galahad-laravel-addressing)

PHPackages © 2026

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