PHPackages                             webparking/laravel-limited-access - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. webparking/laravel-limited-access

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

webparking/laravel-limited-access
=================================

Limited access for Laravel

2.0.0(4y ago)331.1k[1 PRs](https://github.com/webparking/laravel-limited-access/pulls)MITPHPPHP ^7.4|^8.0

Since Sep 10Pushed 4y ago2 watchersCompare

[ Source](https://github.com/webparking/laravel-limited-access)[ Packagist](https://packagist.org/packages/webparking/laravel-limited-access)[ RSS](/packages/webparking-laravel-limited-access/feed)WikiDiscussions master Synced yesterday

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

 Laravel limited access
========================

[](#--laravel-limited-access)

[![Tests](https://github.com/webparking/laravel-limited-access/workflows/Tests/badge.svg)](https://github.com/webparking/laravel-limited-access/workflows/Tests/badge.svg)

This package provides an easy access-restricting layer for your Laravel application.

With limited access you can block or allow certain ip addresses on application level. You could also define a list of access codes to distribute between trusted users.

A few use-cases are:

- Set access codes for an application that is not ready to go live yet. For example an acceptance environment.
- Block malicious users from using your application. Simply add their ip addresses to the blocked list.
- Making a private application only a few users can access. Just block all ip addresses except your own.

Here's an example of what your login could look like when using access codes

[![screenshot](/screenshot.jpg)](/screenshot.jpg)

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

[](#installation)

Add this package to composer.

```
composer require webparking/laravel-limited-access
```

Publish assets:

```
php artisan vendor:publish --provider="Webparking\LimitedAccess\ServiceProvider" --tag="public"
```

### Optional steps

[](#optional-steps)

Publish config:

```
php artisan vendor:publish --provider="Webparking\LimitedAccess\ServiceProvider" --tag="config"
```

Publish translations:

```
php artisan vendor:publish --provider="Webparking\LimitedAccess\ServiceProvider" --tag="lang"
```

Or just publish all the things:

```
php artisan vendor:publish --provider="Webparking\LimitedAccess\ServiceProvider"
```

Usage
-----

[](#usage)

To use this package you need to enable it by either enabling the package in the config or adding the following to your .env file.

```
LIMITED_ACCESS_ENABLED=true
```

To add access codes add the following key to your .env file and specify your access codes in a comma separated list.

```
LIMITED_ACCESS_CODES=comma,separated,access,codes
```

Blocking/Ignoring IP addresses
------------------------------

[](#blockingignoring-ip-addresses)

In `config/limited-access` you can add single IP addresses or IP address ranges in CIDR format.

Example:

```
return [
    'block_ips' => [
        '192.168.1.0/24',
        '66.66.66.66', // 66.66.66.66/32 is equivalent
        '2000:ffff::1',
        '2000:ffff/64',
    ],

    'ignore_ips' => [
        '11.22.33.44',
        '10.0.0.0/8',
        '127.0.0.1',
        '::1',
    ],
];
```

Blocked IPs take priority over ignored IPs, so adding the same address or range to both arrays will cause the given IP to be blocked.

You can leave both of these arrays empty if you wish for everyone to be prompted for a password.

Licence and Postcardware
------------------------

[](#licence-and-postcardware)

This software is open source and licensed under the [MIT license](LICENSE.md).

If you use this software in your daily development we would appreciate to receive a postcard of your hometown.

Please send it to: Webparking BV, Cypresbaan 31a, 2908 LT Capelle aan den IJssel, The Netherlands

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

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

Total

2

Last Release

1565d ago

Major Versions

1.1.0 → 2.0.02022-01-28

PHP version history (2 changes)1.1.0PHP ^7.3

2.0.0PHP ^7.4|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/b33f37a8af0acfeb8638db0a878dacb65b721a2494d0adcc24ed88ff4da05b33?d=identicon)[JeroenVanOort](/maintainers/JeroenVanOort)

---

Top Contributors

[![RVxLab](https://avatars.githubusercontent.com/u/46111684?v=4)](https://github.com/RVxLab "RVxLab (14 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/webparking-laravel-limited-access/health.svg)

```
[![Health](https://phpackages.com/badges/webparking-laravel-limited-access/health.svg)](https://phpackages.com/packages/webparking-laravel-limited-access)
```

###  Alternatives

[lab404/laravel-impersonate

Laravel Impersonate is a plugin that allows to you to authenticate as your users.

2.3k16.4M48](/packages/lab404-laravel-impersonate)[santigarcor/laratrust

This package provides a flexible way to add Role-based Permissions to Laravel

2.3k5.4M43](/packages/santigarcor-laratrust)[overtrue/laravel-follow

User follow unfollow system for Laravel.

1.2k404.7k5](/packages/overtrue-laravel-follow)[codegreencreative/laravel-samlidp

Make your PHP Laravel application an Identification Provider using SAML 2.0. This package allows you to implement your own Identification Provider (idP) using the SAML 2.0 standard to be used with supporting SAML 2.0 Service Providers (SP).

263763.5k1](/packages/codegreencreative-laravel-samlidp)

PHPackages © 2026

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