PHPackages                             nckg/laravel-firewall - 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. nckg/laravel-firewall

ActiveLibrary

nckg/laravel-firewall
=====================

A small Laravel package to help you block IP addresses from accessing your application

0.2.0(4y ago)45692MITPHPPHP ^7.4|^8.0

Since Mar 7Pushed 4y ago1 watchersCompare

[ Source](https://github.com/nckg/laravel-firewall)[ Packagist](https://packagist.org/packages/nckg/laravel-firewall)[ RSS](/packages/nckg-laravel-firewall/feed)WikiDiscussions master Synced 2mo ago

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

HTML minifier
=============

[](#html-minifier)

[![Build Status](https://camo.githubusercontent.com/5731b77fa68e550a3459626cabe07e5f66a2b1df263f095e0107d28d5f3a4f77/68747470733a2f2f7472617669732d63692e6f72672f6e636b672f6c61726176656c2d6669726577616c6c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/nckg/laravel-firewall) [![Packagist](https://camo.githubusercontent.com/fca0c6c73325ccb8f6e185f836ff46a57c78bad8c2454a60afbc3190802d15e2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e636b672f6c61726176656c2d6669726577616c6c2e7376673f6d61784167653d323539323030303f7374796c653d666c61742d737175617265)](https://github.com/nckg/laravel-firewall) [![Packagist](https://camo.githubusercontent.com/2f13b8bca13b77b8d8532c3b98d47990e98ca72bb4500970889165a1692bc57e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e636b672f6c61726176656c2d6669726577616c6c2e7376673f6d61784167653d323539323030303f7374796c653d666c61742d737175617265)](https://github.com/nckg/laravel-firewall)

Introduction
------------

[](#introduction)

Very simple package to allow access to your Laravel application by IP.

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

[](#installation)

You can install the package via composer:

```
composer require nckg/laravel-firewall
```

Add the `FirewallServiceProvider` to you `config/app.php` file.

```
// config/app.php
'providers' => [
    ...
    Nckg\Firewall\FirewallServiceProvider::class,
    ...
]
```

Publish the configuration file to your configuration path:

```
php artisan vendor:publish --provider="Nckg\Firewall\FirewallServiceProvider"

```

If you are using Laravel you can add the middleware to your middleware providers

```
// app/Http/Kernel.php
/**
 * The application's global HTTP middleware stack.
 *
 * @var array
 */
protected $middleware = [
    ...
    \Nckg\Firewall\Middleware\IpAccess::class,
];
```

Testing
-------

[](#testing)

```
composer test
```

License
-------

[](#license)

The MIT License (MIT).

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

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

Total

5

Last Release

1799d ago

PHP version history (2 changes)0.1.2PHP ^7.0

0.2.0PHP ^7.4|^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/360602?v=4)[Nick Goris](/maintainers/nckg)[@nckg](https://github.com/nckg)

---

Top Contributors

[![nckg](https://avatars.githubusercontent.com/u/360602?v=4)](https://github.com/nckg "nckg (5 commits)")

---

Tags

firewalllaravellaravel-5-packagelaravel-packagephpphp7

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nckg-laravel-firewall/health.svg)

```
[![Health](https://phpackages.com/badges/nckg-laravel-firewall/health.svg)](https://phpackages.com/packages/nckg-laravel-firewall)
```

PHPackages © 2026

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