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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. zhanang19/laravel-rules

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

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 3w 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 52% 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

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

[illuminate/validation

The Illuminate Validation package.

18838.2M1.7k](/packages/illuminate-validation)[spatie/laravel-honeypot

Preventing spam submitted through forms

1.6k6.8M75](/packages/spatie-laravel-honeypot)[spatie/laravel-pdf

Create PDFs in Laravel apps

1.0k4.8M47](/packages/spatie-laravel-pdf)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[axlon/laravel-postal-code-validation

Worldwide postal code validation for Laravel

3893.6M1](/packages/axlon-laravel-postal-code-validation)[moonshine/moonshine

Laravel administration panel

1.3k253.1k81](/packages/moonshine-moonshine)

PHPackages © 2026

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