PHPackages                             rpsimao/lockscreen - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. rpsimao/lockscreen

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

rpsimao/lockscreen
==================

Add Lockscreen in laravel

1.0.2(6y ago)0101[1 PRs](https://github.com/rpsimao/lockscreen/pulls)MITPHPPHP &gt;=7.0

Since Sep 9Pushed 5y agoCompare

[ Source](https://github.com/rpsimao/lockscreen)[ Packagist](https://packagist.org/packages/rpsimao/lockscreen)[ Docs](https://github.com/guja1501/lockscreen)[ RSS](/packages/rpsimao-lockscreen/feed)WikiDiscussions master Synced 3d ago

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

Lockscreen
==========

[](#lockscreen)

[![Donate](https://camo.githubusercontent.com/604e3db9c8751116b3f765aad0353ec7ded655bbe8aaacbc38d8c4a6b784b3ed/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446f6e6174652d50617950616c2d677265656e2e737667)](https://www.paypal.me/Guja1501)[![Latest Stable Version](https://camo.githubusercontent.com/0645b2ef3ea34426e4074af4f0fc6875bd457d836046e9ab1a93c32ee653604a/68747470733a2f2f706f7365722e707567782e6f72672f72616e676f6f2f6c6f636b73637265656e2f762f737461626c65)](https://packagist.org/packages/rangoo/lockscreen)[![Total Downloads](https://camo.githubusercontent.com/27f3a941d83bdf66768d0e225f2786d5ffe8d40a9f4a48476ee55d5f98f909de/68747470733a2f2f706f7365722e707567782e6f72672f72616e676f6f2f6c6f636b73637265656e2f646f776e6c6f616473)](https://packagist.org/packages/rangoo/lockscreen)[![License](https://camo.githubusercontent.com/680652bd27c7f09741118b8661abacb0ae93c071d06ae223a561a734c1c4c106/68747470733a2f2f706f7365722e707567782e6f72672f72616e676f6f2f6c6f636b73637265656e2f6c6963656e7365)](https://packagist.org/packages/rangoo/lockscreen)

[rangoo/lockscreen](https://packagist.org/packages/rangoo/lockscreen) is Package for [Laravel](https://laravel.com) on [Packagist](https://packagist.org)

Getting Started
---------------

[](#getting-started)

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

### Installing

[](#installing)

```
composer require rangoo/lockscreen

```

### Help

[](#help)

Lockscreen Middlewares `auth.locked` and `auth.unlocked` is extended to `auth` Middleware

`auth.locked` middleare means that user must be **locked**

`auth.unlocked` middleware means that user must be **unlocked**

Both of them means user must be **logged in**.

### Examples

[](#examples)

[Rangoo\\Lockscreen\\Traits\\LockscreenMethods](https://github.com/Guja1501/lockscreen/blob/v1.0.1/src/Traits/LockscreenMethods.php)

```
// Controller

use Illuminate\Routing\Controller;
use Rangoo\Lockscreen\Traits\LockscreenMethods;

class LockscreenController extends Controller {
	use LockscreenMethods;
}
```

```
// Routes

// Init routes for lockscreen methods
Route::get('/lockscreen', 'LockscreenController@lockscreen')->middleware('auth.locked');
Route::post('/lockscreen', 'LockscreenController@lock')->middleware('auth.unlocked');
Route::delete('/lockscreen', 'LockscreenController@unlock')->middleware('auth.locked');

// If any guard: 'auth.unlocked:guard1,guard2,guard3'
Route::middleware('auth.unlocked')->group(function(){
  // Routes goes here
  // Where must be logged in and unlocked
});
```

***auth.lock blade***

```

   {{ csrf_field() }}
   {{ auth()->user()->name }}, are you here?

```

***layout blade***

```

      window.Lockscreen = {
        locked: {{ session()->get('lockscreen', false) }},
        route: '{{ url('/lockscreen') }}',
      };

```

***webpack***

In this example using packages: [SensorAFK](https://github.com/Guja1501/sensor-afk), [axios](https://github.com/axios/axios)

```
const SensorAFK = require('sensor-afk');
const axios = require('axios');

if(!window.Lockscreen.locked){
  new SensorAFK({
    callback: () => {
      axios.post(window.Lockscreen.route)
        .then(() => {
          location.reload();
        })
        .catch(() => {
          alert('something went wrong');
        });
    }
  });
}
```

Versioning
----------

[](#versioning)

We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/Guja1501/lockscreen/tags).

Authors
-------

[](#authors)

- **Guja Babunashvili** - *Initial work* - [Guja1501](https://github.com/Guja1501)
- **Vakho Nakashidze** - [vakhovakho](https://github.com/vakhovakho)

See also the list of [contributors](https://github.com/Guja1501/lockscreen/contributors) who participated in this project.

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% 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 ~752 days

Total

2

Last Release

2417d ago

### Community

Maintainers

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

---

Top Contributors

[![Guja1501](https://avatars.githubusercontent.com/u/13103518?v=4)](https://github.com/Guja1501 "Guja1501 (14 commits)")[![rpsimao](https://avatars.githubusercontent.com/u/205846?v=4)](https://github.com/rpsimao "rpsimao (2 commits)")

---

Tags

laravellockscreen

### Embed Badge

![Health badge](/badges/rpsimao-lockscreen/health.svg)

```
[![Health](https://phpackages.com/badges/rpsimao-lockscreen/health.svg)](https://phpackages.com/packages/rpsimao-lockscreen)
```

###  Alternatives

[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4195.3M84](/packages/livewire-volt)[gehrisandro/tailwind-merge-laravel

TailwindMerge for Laravel merges multiple Tailwind CSS classes by automatically resolving conflicts between them

341682.2k18](/packages/gehrisandro-tailwind-merge-laravel)[nickurt/laravel-akismet

Akismet for Laravel 11.x/12.x/13.x

97139.6k2](/packages/nickurt-laravel-akismet)[whitecube/laravel-timezones

Store UTC dates in the database and work with custom timezones in the application.

106106.2k](/packages/whitecube-laravel-timezones)[sbine/route-viewer

A Laravel Nova tool to view your registered routes.

57215.9k](/packages/sbine-route-viewer)[forxer/laravel-gravatar

A library providing easy gravatar integration in a Laravel project.

4235.6k](/packages/forxer-laravel-gravatar)

PHPackages © 2026

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