PHPackages                             weap-io/laravel-validation-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. weap-io/laravel-validation-rules

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

weap-io/laravel-validation-rules
================================

A collection of Laravel validation rules

v1.0.0(5y ago)02.9kMITPHPPHP ^7.2CI failing

Since Jun 20Pushed 3y ago1 watchersCompare

[ Source](https://github.com/weap-io/laravel-validation-rules)[ Packagist](https://packagist.org/packages/weap-io/laravel-validation-rules)[ Docs](https://github.com/weap-io/laravel-validation-rules)[ RSS](/packages/weap-io-laravel-validation-rules/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (4)Versions (2)Used By (0)

laravel-validation-rules
========================

[](#laravel-validation-rules)

A set of useful Laravel validation rules crafted and maintained by [Weap.io](https://weap.io).

Installation
============

[](#installation)

Install the package:

```
composer require weap-io/laravel-validation-rules
```

Network
-------

[](#network)

### Hostname

[](#hostname)

Validate a hostname.

```
use Weap\LaravelValidationRules\Rules\Network\Hostname;

// Given input must be a valid hostname (with or without TLD)
return [
    'host' => ['required', new Hostname()]
]

// Given input must be a valid hostname without TLD
return [
    'host' => ['required', new Hostname($withTld = false)]
]
```

### Port

[](#port)

Validate a port number.

```
use Weap\LaravelValidationRules\Rules\Network\Port;

// The input must be a valid port number (0 excluded)
return [
    'port' => ['required', new Port()]
];

// The input must be a valid port number (0 included)
return [
    'port' => ['required', new Port($allowZero = true)]
];
```

Bank
----

[](#bank)

### IBAN

[](#iban)

Validate an IBAN.

```
use Weap\LaravelValidationRules\Rules\Bank\Iban;

return [
   'iban' => ['required', new Iban()]
];
```

### BIC

[](#bic)

Validate a BIC.

```
use Weap\LaravelValidationRules\Rules\Bank\Bic;

return [
    'bic' => ['required', new Bic()]
];
```

Services/Aws
------------

[](#servicesaws)

### S3 Bucket name

[](#s3-bucket-name)

Validate an S3 Bucket name

```
use Weap\LaravelValidationRules\Rules\Services\Aws\S3BucketName;

return [
    'bucket_name' => ['required', new S3BucketName()],
];
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

2149d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e711cc892d5edc8721fc425a8c03952f7fedc440425f5abea3029fcd25e6bd1e?d=identicon)[saas-estate](/maintainers/saas-estate)

---

Top Contributors

[![mezuky04](https://avatars.githubusercontent.com/u/7033003?v=4)](https://github.com/mezuky04 "mezuky04 (14 commits)")

---

Tags

laravel-validation-rulesweap-io

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/weap-io-laravel-validation-rules/health.svg)

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

###  Alternatives

[spatie/laravel-validation-rules

A set of useful Laravel validation rules

8243.3M7](/packages/spatie-laravel-validation-rules)[spatie/laravel-honeypot

Preventing spam submitted through forms

1.6k6.0M60](/packages/spatie-laravel-honeypot)[proengsoft/laravel-jsvalidation

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

1.1k2.3M49](/packages/proengsoft-laravel-jsvalidation)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[axlon/laravel-postal-code-validation

Worldwide postal code validation for Laravel and Lumen

3853.3M1](/packages/axlon-laravel-postal-code-validation)[laravel-validation-rules/credit-card

Validate credit card number, expiration date, cvc

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

PHPackages © 2026

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