PHPackages                             dlabs.cloud/laravel-trusted-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. dlabs.cloud/laravel-trusted-ip

ActiveLibrary

dlabs.cloud/laravel-trusted-ip
==============================

This is a package that allows validation of trusted IP Address in the fly even at run time

05PHP

Since Sep 10Pushed 5y agoCompare

[ Source](https://github.com/uncle-tee/laravel-trusted-ip)[ Packagist](https://packagist.org/packages/dlabs.cloud/laravel-trusted-ip)[ RSS](/packages/dlabscloud-laravel-trusted-ip/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel-Trusted-Ip.
-------------------

[](#laravel-trusted-ip)

Allow only your trusted IP address access services in real time. Update and change data base values from the db layer intead of accessing .env every time.

Ths package is IPAware and allows you to restrict Ips else only allow Ips that have been registered.

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

[](#installation)

#### Via Composer

[](#via-composer)

To install via composer, run the following command in the root of your Laravel application:

```
$ composer require dlabs.cloud/laravel-trusted-ip
```

You will have to run `php artisan migrate` to run update your db.

Usage
-----

[](#usage)

If you wish you can create an alias for the middleware in the app kernel thats up to you though.

```
'trusted.ip.address' => \Dlabs\LaravelTrustedIp::class
```

Although You can also directly call the class in you route.

You can then guard your route as you wish

```
Route::get('/trusted-ip', 'TestController@trustedIp')->middleware('trusted.ip.address');
```

***The trusted Ip also allow parameters to be passed to it.***

```
Route::get('/trusted-ip', 'TestController@trustedIp')->middleware('trusted.ip.address: reliance');  *This will check if the client IP making the request matches the name **reliance** on the trusted IP table.*
```

**NB:** If no param is passed to the middleware it will only validate if the client IP exist on the trusted\_ip\_address table.

**`If you think you will have many clients that will be hitting that end point you can pass multiple IP names.`**

```
Route::get('/trusted-ip', 'TestController@trustedIp')>middleware('trusted.ip.address:paystack,monify,interswitch');
```

Interesting right?

Test
----

[](#test)

🙆🏿‍♂️😭😭😭😭😭😭😭😭😭😭😭
No test, zero test coverage. But coming soon.

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/3c89f1e85d28b9a37a6b6936fd2d90549ccd20512727be16a7eee69bb8411494?d=identicon)[uncle-tee](/maintainers/uncle-tee)

### Embed Badge

![Health badge](/badges/dlabscloud-laravel-trusted-ip/health.svg)

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

PHPackages © 2026

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