PHPackages                             enkuldes/listing-ip-address - 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. [Security](/categories/security)
4. /
5. enkuldes/listing-ip-address

ActiveLibrary[Security](/categories/security)

enkuldes/listing-ip-address
===========================

Whitelisting/Blacklisting IP Address

1.0.0(3y ago)05MITPHPPHP &gt;=7.2

Since Oct 24Pushed 3y ago1 watchersCompare

[ Source](https://github.com/EnKuldes/listing-ip-address)[ Packagist](https://packagist.org/packages/enkuldes/listing-ip-address)[ Docs](https://github.com/enkuldes/listing-ip-address)[ RSS](/packages/enkuldes-listing-ip-address/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (3)Versions (3)Used By (0)

Listing IP Address
==================

[](#listing-ip-address)

[![Latest Version on Packagist](https://camo.githubusercontent.com/b01e490b16845c6af753e3268f33694a7914f073ee7bb7bd0a5e6f3b2b0320ae/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656e6b756c6465732f6c697374696e672d69702d616464726573732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/enkuldes/listing-ip-address)[![Total Downloads](https://camo.githubusercontent.com/ee7406c18d04b9f3497ae1b3f4f5890e7e4f34c8a280fb0d2fe292892a52596d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f656e6b756c6465732f6c697374696e672d69702d616464726573732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/enkuldes/listing-ip-address)[![GitHub Actions](https://github.com/enkuldes/listing-ip-address/actions/workflows/main.yml/badge.svg)](https://github.com/enkuldes/listing-ip-address/actions/workflows/main.yml/badge.svg)

This is my very first package that I have to publish. The basic function is to whatever check IP Address of client is being blacklist/whitelist to access the page.

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

[](#installation)

You can install the package via composer:

```
composer require enkuldes/listing-ip-address
```

Export the config file with:

```
php artisan vendor:publish --provider="EnKuldes\ListingIPAddress\ListingIPAddressServiceProvider"
```

And after that add this following line on `.ENV` file:

```
# List of IP Address separated by comma (,)
LIST_IP=192.168.0.5,10.194.17.10,127.0.0.1
# How middleware React to List of IP. Either blacklist or whitelist. Default BlackList.
BEHAVIOR=whitelist
```

Usage
-----

[](#usage)

Add middleware to route file, example:

```
// Add middleware to single route
Route::get('/', 'HomeController@index')->middleware('listing-ip-address');
// Add middleware to group route
Route::middleware(['listing-ip-address'])->group(function () {
	Route::get('/', 'HomeController@index');
};
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Farhan Almas Hafiz Muzaki](https://github.com/enkuldes)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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

1296d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/828c08d743a586c5c040294058b8ba8ea399859969f6bcee3fbd212ecf716538?d=identicon)[enkuldes](/maintainers/enkuldes)

---

Top Contributors

[![EnKuldes](https://avatars.githubusercontent.com/u/55388707?v=4)](https://github.com/EnKuldes "EnKuldes (16 commits)")

---

Tags

enkuldeslisting-ip-address

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/enkuldes-listing-ip-address/health.svg)

```
[![Health](https://phpackages.com/badges/enkuldes-listing-ip-address/health.svg)](https://phpackages.com/packages/enkuldes-listing-ip-address)
```

###  Alternatives

[illuminate/encryption

The Illuminate Encryption package.

9229.7M280](/packages/illuminate-encryption)[tzsk/otp

A secure, database-free One-Time Password (OTP) generator and verifier for PHP and Laravel.

241641.4k1](/packages/tzsk-otp)[genealabs/laravel-governor

Managing policy and control in Laravel.

201262.8k](/packages/genealabs-laravel-governor)[dgtlss/warden

A Laravel package that proactively monitors your dependencies for security vulnerabilities by running automated composer audits and sending notifications via webhooks and email

8745.6k](/packages/dgtlss-warden)[ercsctt/laravel-file-encryption

Secure file encryption and decryption for Laravel applications

642.6k](/packages/ercsctt-laravel-file-encryption)[laragear/poke

Keep your forms alive, avoid TokenMismatchException by gently poking your Laravel app

2211.5k](/packages/laragear-poke)

PHPackages © 2026

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