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

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

programic/laravel-rules
=======================

Extra rules intance

01PHP

Since Jan 28Pushed 3y ago2 watchersCompare

[ Source](https://github.com/programic/laravel-rules)[ Packagist](https://packagist.org/packages/programic/laravel-rules)[ RSS](/packages/programic-laravel-rules/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Programic - Laravel Rules
=========================

[](#programic---laravel-rules)

[![Latest Version on Packagist](https://camo.githubusercontent.com/0f391aee601449c837af8361495959bd22c5cfd7f9730190ded32da75f3d9682/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f70726f6772616d69632f6c61726176656c2d72756c65732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/programic/laravel-rules)[![](https://github.com/programic/laravel-rules/workflows/Run%20Tests/badge.svg?branch=master)](https://github.com/programic/laravel-rules/workflows/Run%20Tests/badge.svg?branch=master)[![Tests](https://github.com/programic/laravel-rules/actions/workflows/run-tests.yml/badge.svg?branch=master)](https://github.com/programic/laravel-task/actions/workflows/rules.yml)[![Total Downloads](https://camo.githubusercontent.com/8d4193b689af7157aa55b915124eddfe15c89f9a0931bb3b91ecac58dfd3884a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f70726f6772616d69632f6c61726176656c2d72756c65732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/programic/laravel-rules)

This package allows you to manage request validation rules for store and update requests

### Installation

[](#installation)

This package requires PHP 7.2 and Laravel 5.8 or higher.

```
composer require programic/laravel-rules

```

### Basic Usage

[](#basic-usage)

```
# Create Task
php artisan make:rule SaveUserRule
```

### Conditions

[](#conditions)

```
public funtion base(): array
{
    return [
        'name': 'required,string',
        'company': 'required,integer',
    ];
}

public funtion store(): array
{
    return [
        'company': 'exists:companies.id',
    ];
}

public funtion update(): array
{
    return [
        'name': 'nullable',
    ]
}
```

### Custom stub

[](#custom-stub)

Custom stubs are supported.

```
php artisan vendor:publish --provider="Programic\Rules\RulesServiceProvider" --tag="stubs"
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

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

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

[](#contributing)

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

### Security

[](#security)

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

Credits
-------

[](#credits)

- [Rick Bongers](https://github.com/rbongers)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

14

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/04de5632caf547d8dfa4ffbfac25d0538f92f1e9d52d2f91a2d1d6f17a9561a5?d=identicon)[Programic](/maintainers/Programic)

---

Top Contributors

[![rick-bongers](https://avatars.githubusercontent.com/u/67374906?v=4)](https://github.com/rick-bongers "rick-bongers (1 commits)")

### Embed Badge

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

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

###  Alternatives

[marcosh/php-validation-dsl

A DSL for validating data in a functional fashion

483.9k](/packages/marcosh-php-validation-dsl)

PHPackages © 2026

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