PHPackages                             rabianr/laravel-ip-restrictions - 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. rabianr/laravel-ip-restrictions

ActiveLibrary

rabianr/laravel-ip-restrictions
===============================

Ip restrictions Middleware for Laravel

1.2(4y ago)012MITPHPPHP &gt;=7.2

Since Nov 9Pushed 4y ago1 watchersCompare

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

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

Ip restrictions Middleware for Laravel
======================================

[](#ip-restrictions-middleware-for-laravel)

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

[](#installation)

```
composer require rabianr/laravel-ip-restrictions
```

Configuration
-------------

[](#configuration)

Publish the config to copy the file to your own config:

```
php artisan vendor:publish --tag="iprestrictions"
```

Usage
-----

[](#usage)

Set `iprestrictions` middleware to any route that require Basic Auth.

Define ip addresses in `config/iprestrictions.php` config file.

```
'whitelist' => array_merge([
    '1.1.1.1',
], array_filter(explode(',', env('IPRESTRICTIONS_WHITELIST', '')))),
```

or in `.env` file

```
IPRESTRICTIONS_WHITELIST=1.1.1.1,1.1.1.2

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

Every ~41 days

Total

3

Last Release

1563d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3be6194d4bf5579740dae6a155b414106b2fe569db059d72dd9dbb2dbbee38c0?d=identicon)[rabianr](/maintainers/rabianr)

---

Top Contributors

[![rabianr](https://avatars.githubusercontent.com/u/76022206?v=4)](https://github.com/rabianr "rabianr (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rabianr-laravel-ip-restrictions/health.svg)

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

###  Alternatives

[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.5k25.9M107](/packages/laravel-cashier)[laravel/reverb

Laravel Reverb provides a real-time WebSocket communication backend for Laravel applications.

1.5k9.4M48](/packages/laravel-reverb)[spatie/laravel-honeypot

Preventing spam submitted through forms

1.6k6.0M60](/packages/spatie-laravel-honeypot)[illuminate/routing

The Illuminate Routing package.

1238.6M2.3k](/packages/illuminate-routing)[proengsoft/laravel-jsvalidation

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

1.1k2.3M49](/packages/proengsoft-laravel-jsvalidation)[illuminate/validation

The Illuminate Validation package.

18936.7M1.4k](/packages/illuminate-validation)

PHPackages © 2026

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