PHPackages                             masterro/laravel-access-screen - 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. masterro/laravel-access-screen

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

masterro/laravel-access-screen
==============================

Provides a configurable password screen for your Laravel application.

v0.2.0(1mo ago)013MITCSSPHP ^8.2|^8.3|^8.4|^8.5CI passing

Since Feb 25Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/MasterRO94/laravel-access-screen)[ Packagist](https://packagist.org/packages/masterro/laravel-access-screen)[ RSS](/packages/masterro-laravel-access-screen/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (12)Versions (5)Used By (0)

Access Screen for Laravel
=========================

[](#access-screen-for-laravel)

 [![](https://github.com/MasterRO94/laravel-access-screen/raw/main/resources/assets/demo.png)](https://github.com/MasterRO94/laravel-access-screen/blob/main/resources/assets/demo.png)

 [ ![StandWithUkraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/badges/StandWithUkraine.svg) ](https://github.com/vshymanskyy/StandWithUkraine/blob/main/docs/README.md)

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

[](#introduction)

Access Screen for Laravel is a package that allows you to guard specific routes or an entire Laravel application with an access screen. Users must enter an access key to proceed, and the package provides a command to generate this key. Once a valid key is entered, the screen will not be shown again for a specified period of time.

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

[](#installation)

Install the package via Composer:

```
composer require masterro/laravel-access-screen
```

Configuration
-------------

[](#configuration)

Publish the configuration file:

```
php artisan access-screen:publish
```

This will create a `config/access-screen.php` file where you can customize the package behavior.

### Available Configuration Options

[](#available-configuration-options)

```
return [
    'access_key' => env('ACCESS_SCREEN_KEY', 'REPLACE_WITH_ACCESS_KEY'),
    'lifetime' => env('ACCESS_SCREEN_KEY_LIFETIME'), // minutes
    'app_name' => env('ACCESS_SCREEN_APP_NAME', env('APP_NAME')),
    'except' => [], // URIs to exclude from access screen.
    'middleware' => ['web'],
    'uri' => env('ACCESS_SCREEN_URI', 'get-access'),
    'title_line1' => env('ACCESS_SCREEN_TITLE_LINE1', 'Please enter the key'),
    'title_line2' => env('ACCESS_SCREEN_TITLE_LINE2', 'to access the application'),
    'description' => env(
        'ACCESS_SCREEN_DESCRIPTION',
        'To proceed using the application, please enter a valid access key below.',
    ),
    'input_type' => env('ACCESS_SCREEN_INPUT_TYPE', 'text'),
];
```

Usage
-----

[](#usage)

### Protecting Routes

[](#protecting-routes)

To protect specific routes, apply the middleware to them:

```
use MasterRO\AccessScreen\Middleware\RedirectToAccessScreen;

Route::middleware([RedirectToAccessScreen::class])->group(function () {
    Route::get('/dashboard', [DashboardController::class, 'index']);
});
```

### Protecting the Entire Application

[](#protecting-the-entire-application)

To guard the entire application, apply the middleware globally in `bootstrap/app.php`:

```
$app
    ->withMiddleware(function (Middleware $middleware) {
        $middleware->appendToGroup('web', [RedirectToAccessScreen::class]);
    })
```

Generating an Access Key
------------------------

[](#generating-an-access-key)

Use the following Artisan command to generate an access key:

```
php artisan access-screen:key --generate
```

Excluding Certain Routes
------------------------

[](#excluding-certain-routes)

To exclude specific URIs from the access screen, update the `except` array in `config/access-screen.php`:

```
'except' => [
    'login',
    'register',
],
```

Customizing the Access Screen
-----------------------------

[](#customizing-the-access-screen)

You can customize the appearance and messaging of the access screen using the configuration options:

- `title_line1`: First line of the title.
- `title_line2`: Second line of the title.
- `description`: Description text.
- `input_type`: Input type (e.g., `text`, `password`).

License
-------

[](#license)

This package is open-source and available under the MIT license.

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance89

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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 ~194 days

Total

3

Last Release

58d ago

### Community

Maintainers

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

---

Top Contributors

[![MasterRO94](https://avatars.githubusercontent.com/u/7365389?v=4)](https://github.com/MasterRO94 "MasterRO94 (12 commits)")[![claude](https://avatars.githubusercontent.com/u/81847?v=4)](https://github.com/claude "claude (6 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/masterro-laravel-access-screen/health.svg)

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

###  Alternatives

[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.5k25.9M107](/packages/laravel-cashier)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[rahul900day/laravel-captcha

Different types of Captcha implementation for Laravel Application.

10715.9k](/packages/rahul900day-laravel-captcha)[aedart/athenaeum

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

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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