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 4w 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 46% 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

3108d 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

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.4M354](/packages/psalm-plugin-laravel)[axlon/laravel-postal-code-validation

Worldwide postal code validation for Laravel

3893.7M1](/packages/axlon-laravel-postal-code-validation)[wendelladriel/laravel-validated-dto

Data Transfer Objects with validation for Laravel applications

774680.8k19](/packages/wendelladriel-laravel-validated-dto)[laravel-validation-rules/credit-card

Validate credit card number, expiration date, cvc

2442.4M9](/packages/laravel-validation-rules-credit-card)[sandermuller/laravel-fluent-validation

Fluent validation rule builders for Laravel

21428.9k6](/packages/sandermuller-laravel-fluent-validation)[romegasoftware/laravel-schema-generator

Generate TypeScript Zod validation schemas from Laravel validation rules

3223.9k](/packages/romegasoftware-laravel-schema-generator)

PHPackages © 2026

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