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

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

laravel-validation-rules/ip
===========================

Validate if an ip address is public or private.

1.6.0(4y ago)1629.7k2Apache-2.0PHP

Since Sep 10Pushed 4y ago3 watchersCompare

[ Source](https://github.com/laravel-validation-rules/ip)[ Packagist](https://packagist.org/packages/laravel-validation-rules/ip)[ RSS](/packages/laravel-validation-rules-ip/feed)WikiDiscussions master Synced 2d ago

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

IP
==

[](#ip)

Validates an ip address is either public or private. Supports ipv4 &amp; ipv6.

 [ ![](https://camo.githubusercontent.com/abdff9bc58782e636b66cef94a9515804ec35f3d0503bacd75c5dd13a9043d49/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6c61726176656c2d76616c69646174696f6e2d72756c65732f69702e7376673f7374796c653d666c61742d737175617265) ](https://travis-ci.org/laravel-validation-rules/ip) [ ![](https://camo.githubusercontent.com/22429936239b0ce404a27a046e20c33231fb6e9255763629425fbf15d6158db6/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6c61726176656c2d76616c69646174696f6e2d72756c65732f69702e7376673f7374796c653d666c61742d737175617265) ](https://scrutinizer-ci.com/g/laravel-validation-rules/ip/code-structure/master/code-coverage) [ ![](https://camo.githubusercontent.com/87dd5d9f24106d1a24bba0dfc62a04afb0b0bfd9d414e35a46faf674ec90b250/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6c61726176656c2d76616c69646174696f6e2d72756c65732f69702e7376673f7374796c653d666c61742d737175617265) ](https://scrutinizer-ci.com/g/laravel-validation-rules/ip) [ ![](https://camo.githubusercontent.com/ea45807d32296fb4c0732ddb6e8fb83029be6af1d3a6ba6daf01c0ec052903f6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6c61726176656c2d76616c69646174696f6e2d72756c65732f69702e7376673f7374796c653d666c61742d737175617265) ](https://github.com/laravel-validation-rules/ip/blob/master/LICENSE)

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

[](#installation)

```
composer require laravel-validation-rules/ip
```

Usage
-----

[](#usage)

Validate an ip address is a public address.

```
use LVR\IP\PublicAddress;

$request->validate([
    'ip' => ['required', new PublicAddress],
]);
```

Validate an ip address is a private address.

```
use LVR\IP\PrivateAddress;

$request->validate([
    'ip' => ['required', new PrivateAddress],
]);
```

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 64.7% 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 ~314 days

Recently: every ~198 days

Total

6

Last Release

1598d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4aa56557de1c571ed78fb23fda585f3fd461425339df673fb293c609a6719c81?d=identicon)[clarkeash](/maintainers/clarkeash)

---

Top Contributors

[![clarkeash](https://avatars.githubusercontent.com/u/1612186?v=4)](https://github.com/clarkeash "clarkeash (11 commits)")[![ssx](https://avatars.githubusercontent.com/u/254889?v=4)](https://github.com/ssx "ssx (5 commits)")[![anio](https://avatars.githubusercontent.com/u/3686626?v=4)](https://github.com/anio "anio (1 commits)")

---

Tags

iplaravelrulevalidationlaravelvalidationIP

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  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)[galahad/laravel-addressing

Laravel package providing addressing functionality

70316.6k](/packages/galahad-laravel-addressing)[arondeparon/laravel-request-sanitizer

An easy to use request sanitizer that allows you to sanitize your form data before validating it.

112151.6k1](/packages/arondeparon-laravel-request-sanitizer)[yorcreative/laravel-argonaut-dto

Argonaut is a lightweight Data Transfer Object (DTO) package for Laravel that supports nested casting, recursive serialization, and validation out of the box. Ideal for service layers, APIs, and clean architecture workflows.

1062.8k1](/packages/yorcreative-laravel-argonaut-dto)

PHPackages © 2026

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