PHPackages                             hareku/laravel-rule-getter - 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. hareku/laravel-rule-getter

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

hareku/laravel-rule-getter
==========================

Laravel get valitation rules helper.

1.0.4(8y ago)121MITPHPPHP &gt;=7.0.0

Since May 27Pushed 8y ago1 watchersCompare

[ Source](https://github.com/hareku/laravel-rule-getter)[ Packagist](https://packagist.org/packages/hareku/laravel-rule-getter)[ RSS](/packages/hareku-laravel-rule-getter/feed)WikiDiscussions master Synced yesterday

READMEChangelog (5)Dependencies (4)Versions (7)Used By (0)

Laravel Get Validation Rules Helper
===================================

[](#laravel-get-validation-rules-helper)

This package helps you to get validation rule so easily.

Caution
-------

[](#caution)

- *Support Laravel 5.4~*
- *Required php &gt;=7.1*

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

[](#installation)

First, pull in the package through Composer.

Run `composer require hareku/laravel-rule-getter`

And then, include the service provider within `config/app.php`.

```
'providers' => [
    Hareku\LaravelRule\ValidationRuleServiceProvider::class,
];
```

Publish the config file. (validation-rules.php)

```
$ php artisan vendor:publish --provider="Hareku\LaravelRule\ValidationRuleServiceProvider"
```

Setting is completed!

Usage
-----

[](#usage)

### Get a validation rule.

[](#get-a-validation-rule)

```
// validation-rules.php

return [
    'user' => [
        'name'     => 'required|min:1|max:20',
        'email'    => 'required|email|max:255|unique:users',
        'password' => 'required|min:6|max:100|confirmed',
    ],
];

// You can get with a helper function.

rule('user.name') // 'required|min:1|max:20'
rule('user.email') // 'required|email|max:255|unique:users'
rule('user.password') // 'required|min:6|max:100|confirmed'
```

License
-------

[](#license)

MIT

Author
------

[](#author)

hareku ()

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

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

Total

5

Last Release

3254d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f2f2632614b1a64f8ec0e6af9a9ec948b62f38d235fbae2b911091ac614af818?d=identicon)[hareku](/maintainers/hareku)

---

Top Contributors

[![hareku](https://avatars.githubusercontent.com/u/17667652?v=4)](https://github.com/hareku "hareku (12 commits)")

---

Tags

laravelvalidation

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hareku-laravel-rule-getter/health.svg)

```
[![Health](https://phpackages.com/badges/hareku-laravel-rule-getter/health.svg)](https://phpackages.com/packages/hareku-laravel-rule-getter)
```

###  Alternatives

[propaganistas/laravel-phone

Adds phone number functionality to Laravel based on Google's libphonenumber API.

3.0k35.7M107](/packages/propaganistas-laravel-phone)[proengsoft/laravel-jsvalidation

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

1.1k2.3M49](/packages/proengsoft-laravel-jsvalidation)[axlon/laravel-postal-code-validation

Worldwide postal code validation for Laravel and Lumen

3853.3M1](/packages/axlon-laravel-postal-code-validation)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[laravel-validation-rules/credit-card

Validate credit card number, expiration date, cvc

2412.2M5](/packages/laravel-validation-rules-credit-card)[galahad/laravel-addressing

Laravel package providing addressing functionality

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

PHPackages © 2026

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