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

ActiveLibrary

zhanang19/laravel-rules
=======================

laravel-rules

v1.0.0(5y ago)0585[1 PRs](https://github.com/zhanang19/laravel-rules/pulls)MITPHPPHP ^7.4|^8.0CI failing

Since Jan 17Pushed 3y ago1 watchersCompare

[ Source](https://github.com/zhanang19/laravel-rules)[ Packagist](https://packagist.org/packages/zhanang19/laravel-rules)[ Docs](https://github.com/zhanang19/laravel-rules)[ GitHub Sponsors](https://github.com/sponsors/zhanang19)[ Fund](https://buymeacoff.ee/zhanang19)[ RSS](/packages/zhanang19-laravel-rules/feed)WikiDiscussions master Synced 2d ago

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

Laravel Rules
=============

[](#laravel-rules)

[![Latest Version on Packagist](https://camo.githubusercontent.com/d63631c6635a830e1736f4868e2e8ce8f0f3d041ffc08cad3ff661a2c58fa30a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a68616e616e6731392f6c61726176656c2d72756c65732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/zhanang19/laravel-rules)[![GitHub Tests Action Status](https://camo.githubusercontent.com/9c6c9ec533550fa8a8080a86ced2c26ba4d52e15b0596bd27c1b8af209e1d4da/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f7a68616e616e6731392f6c61726176656c2d72756c65732f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/zhanang19/laravel-rules/actions?query=workflow%3ATests+branch%3Amaster)[![Total Downloads](https://camo.githubusercontent.com/7512eaa00bc5eebf1296742964d11cf52ec9789e0d04facf601085ef786ae433/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7a68616e616e6731392f6c61726176656c2d72756c65732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/zhanang19/laravel-rules)

This package provides a library of reusable validation rules for your Laravel projects.

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

[](#installation)

You can install the package via composer:

```
composer require zhanang19/laravel-rules
```

Usage
-----

[](#usage)

```
use Zhanang19\LaravelRules\Rules\LinkedinUrl;

$request->validate([
    'linkedin_url' => ['required', 'string', new LinkedinUrl],
]);
```

You can use all available rule directly as Rule object. See

> You must specify the validation rules as an array instead of using the `|` character to delimit your validation rules

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

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

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Zainal Hasan](https://github.com/zhanang19)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

1941d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/743022649ac069fc287e45c0dec296b0c0faf591e1bce46fbe059742252b1e4f?d=identicon)[zhanang19](/maintainers/zhanang19)

---

Top Contributors

[![zhanang19](https://avatars.githubusercontent.com/u/19884603?v=4)](https://github.com/zhanang19 "zhanang19 (2 commits)")

---

Tags

laravel ruleszhanang19

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[timokoerber/laravel-one-time-operations

Run operations once after deployment - just like you do it with migrations!

6481.7M11](/packages/timokoerber-laravel-one-time-operations)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[wnx/laravel-sends

Keep track of outgoing emails in your Laravel application.

200427.3k](/packages/wnx-laravel-sends)[illuminate/process

The Illuminate Process package.

44699.5k65](/packages/illuminate-process)

PHPackages © 2026

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