PHPackages                             yish/laravel-accessible-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. yish/laravel-accessible-ip

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

yish/laravel-accessible-ip
==========================

Accessible IPs for Laravel.

1.0.2(9y ago)81.5kMITPHPPHP &gt;=5.6.4

Since Mar 8Pushed 6y agoCompare

[ Source](https://github.com/Mombuyish/Laravel-accessible-IPs)[ Packagist](https://packagist.org/packages/yish/laravel-accessible-ip)[ RSS](/packages/yish-laravel-accessible-ip/feed)WikiDiscussions master Synced today

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

Laravel Accessible IPs
======================

[](#laravel-accessible-ips)

[![Build Status](https://camo.githubusercontent.com/1a560c37f7834b87f308717d2be4ac120063b58e7d2ab6d2132070be6ff7ce32/68747470733a2f2f7472617669732d63692e6f72672f4d6f6d6275796973682f4c61726176656c2d61636365737369626c652d4950732e737667)](https://travis-ci.org/Mombuyish/Laravel-accessible-IPs)[![Total Downloads](https://camo.githubusercontent.com/8e9419074286517266b2f20ba887124b5e496b8e19e378dcd6effb8815633a30/68747470733a2f2f706f7365722e707567782e6f72672f796973682f6c61726176656c2d61636365737369626c652d69702f642f746f74616c2e737667)](https://packagist.org/packages/yish/laravel-accessible-ip)[![Latest Stable Version](https://camo.githubusercontent.com/c2c3ba440d023430b5adc9f565f572648715b8b65f3a814594adc0b250233900/68747470733a2f2f706f7365722e707567782e6f72672f796973682f6c61726176656c2d61636365737369626c652d69702f762f737461626c652e737667)](https://packagist.org/packages/yish/laravel-accessible-ip)[![License](https://camo.githubusercontent.com/e78a8a6176813bbcff57bbac262ca57838fe0f33af22ef3413f13987ff724c7b/68747470733a2f2f706f7365722e707567782e6f72672f796973682f6c61726176656c2d61636365737369626c652d69702f6c6963656e73652e737667)](https://packagist.org/packages/yish/laravel-accessible-ip)[![License](https://camo.githubusercontent.com/18764400df23fe045e35390eb1bf352c7c6934a20fe9361a64fd12e32f16006b/68747470733a2f2f706f7365722e707567782e6f72672f796973682f6c61726176656c2d61636365737369626c652d69702f762f756e737461626c652e737667)](https://packagist.org/packages/yish/laravel-accessible-ip)

Accessible IPs for Laravel. Supported allowed ip and proxy server.

Requirement
-----------

[](#requirement)

#### laravel 5.1 - 5.4.

[](#laravel-51---54)

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

[](#installation)

Install via composer

```
$ composer require yish/laravel-accessible-ip
```

You need to register service provider in `config/app.php`, also, you can binding `AppServiceProvider` on register.

**Notice**You must register provider after `Illuminate\Http\Request`.

```
    'providers' => [
    ...
    /*
     * Package Service Providers...
     */
    Mombuyish\AccessibleIP\AccessibleIPServiceProvider::class,
    ...
```

Next, navigate to `app/Http/Middleware/Kernel.php`, adding middleware

```
protected $routeMiddleware = [
        'access-ip' => \Mombuyish\AccessibleIP\Middleware\AccessibleIPAddress::class,
    ];
```

Finally, publish the config.

```
$ php artisan vendor:publish --provider="Mombuyish\AccessibleIP\AccessibleIPServiceProvider"
```

You can configrate on config `access-ip.php`

🎉🎉 **Supported CI/DR !!** 🎉🎉

Including `127.0.0.1` inside, so you don't need add it.

```
'allowed' => [
        '123.11.22.33',
        '123.11.0.0/32'
    ],
```

If you have proxies server on front, you should be place proxies:

🎉🎉 **Supported CI/DR !!** 🎉🎉

```
'proxies' => [
        env('PROXY_SERVER_IP'),
        '123.11.0.0/32'
    ],
```

You can use on routing middleware, for example:

```
Route::get('/', function () {
    return view('welcome');
})->middleware('access-ip');
```

or you can do this:

```
Route::group(['middleware' => ['access-ip']], function() {
    Route::get('/', function () {
        return view('welcome');
    });
});
```

Exception
=========

[](#exception)

When you denied by middleware, you will get `403 Forbidden`. You can use `app/Exceptions/Handler.php` to change exception do something.

It will get same things.

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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 ~20 days

Recently: every ~25 days

Total

6

Last Release

3296d ago

Major Versions

0.1.2 → 1.0.02017-06-19

PHP version history (2 changes)0.1.0PHP &gt;=7.0.0

1.0.0PHP &gt;=5.6.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8007787?v=4)[Yish](/maintainers/Mombuyish)[@Mombuyish](https://github.com/Mombuyish)

---

Top Contributors

[![Mombuyish](https://avatars.githubusercontent.com/u/8007787?v=4)](https://github.com/Mombuyish "Mombuyish (6 commits)")

---

Tags

laravelIP

### Embed Badge

![Health badge](/badges/yish-laravel-accessible-ip/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[laravel/ai

The official AI SDK for Laravel.

1.0k2.1M163](/packages/laravel-ai)[moonshine/moonshine

Laravel administration panel

1.3k239.9k76](/packages/moonshine-moonshine)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[linkxtr/laravel-qrcode

A clean, modern, and easy-to-use QR code generator for Laravel

3614.9k](/packages/linkxtr-laravel-qrcode)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.2k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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