PHPackages                             jenky/smart-rule - 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. jenky/smart-rule

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

jenky/smart-rule
================

Laravel smart validation rules

1.0.5(8y ago)0109MITPHPPHP ~5.6|~7.0

Since Apr 26Pushed 8y ago1 watchersCompare

[ Source](https://github.com/jenky/smart-rule)[ Packagist](https://packagist.org/packages/jenky/smart-rule)[ Docs](https://github.com/jenky/smart-rule)[ RSS](/packages/jenky-smart-rule/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (6)Dependencies (3)Versions (8)Used By (0)

smart-rule
==========

[](#smart-rule)

[![Latest Version on Packagist](https://camo.githubusercontent.com/8cd0b308b4d708f6cee7a8bd681ad4f5cb851cadda3f54c1b8872fdbf384b58c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a656e6b792f736d6172742d72756c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jenky/smart-rule)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/8f9e0083090afb5a77c4835e02e81193ef311208ebd6dffe9e5ccc1f716a6876/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6a656e6b792f736d6172742d72756c652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/jenky/smart-rule)[![Coverage Status](https://camo.githubusercontent.com/86995d91765a01ea9517c0ea6f1c626580a31f9de9b09cfc82eac2dcc2718a59/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6a656e6b792f736d6172742d72756c652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/jenky/smart-rule/code-structure)[![Quality Score](https://camo.githubusercontent.com/1415ddfcf3e53a6efbf139fddce98cf36110b93cb1d0ed19e1b3bc80907a8145/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6a656e6b792f736d6172742d72756c652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/jenky/smart-rule)[![Total Downloads](https://camo.githubusercontent.com/03eea30f561a50f6da8cd0225c7bac527802ce53c03c286a960a81c09c2073f6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a656e6b792f736d6172742d72756c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jenky/smart-rule)

**Note:** Replace `Lynh` `jenky` `https://github.com/jenky` `contact@lynh.me` `jenky` `smart-rule` `Laravel smart validation rules` with their correct values in [README.md](README.md), [CHANGELOG.md](CHANGELOG.md), [CONTRIBUTING.md](CONTRIBUTING.md), [LICENSE.md](LICENSE.md) and [composer.json](composer.json) files, then delete this line. You can run `$ php prefill.php` in the command line to make all replacements at once. Delete the file prefill.php as well.

This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors.

Structure
---------

[](#structure)

If any of the following are applicable to your project, then the directory structure should follow industry best practises by being named the following.

```
bin/
config/
src/
tests/
vendor/

```

Install
-------

[](#install)

Via Composer

```
$ composer require jenky/smart-rule
```

Usage
-----

[](#usage)

```
$skeleton = new jenky\smart-rule();
echo $skeleton->echoPhrase('Hello, League!');
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Lynh](https://github.com/jenky)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

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

Total

6

Last Release

3267d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/783e915bb411d566e8f1035f197842db5e870a2a995b3943bcbe5db2f9abf09b?d=identicon)[Milano](/maintainers/Milano)

---

Top Contributors

[![jenky](https://avatars.githubusercontent.com/u/1808758?v=4)](https://github.com/jenky "jenky (19 commits)")

---

Tags

laravelrulevalidationlaravelvalidationrulevalidation rulejenky

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/jenky-smart-rule/health.svg)

```
[![Health](https://phpackages.com/badges/jenky-smart-rule/health.svg)](https://phpackages.com/packages/jenky-smart-rule)
```

###  Alternatives

[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)[illuminatech/validation-composite

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

180517.4k](/packages/illuminatech-validation-composite)[axlon/laravel-postal-code-validation

Worldwide postal code validation for Laravel and Lumen

3883.5M1](/packages/axlon-laravel-postal-code-validation)[timacdonald/rule-builder

A fluent rule builder for Laravel validation rule generation.

1017.8k](/packages/timacdonald-rule-builder)[romegasoftware/laravel-schema-generator

Generate TypeScript Zod validation schemas from Laravel validation rules

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

PHPackages © 2026

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