PHPackages                             alt-three/locker - 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. alt-three/locker

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

alt-three/locker
================

A lock manager for Laravel

v6.4.0(5y ago)78310.8k—8.9%15[1 PRs](https://github.com/AltThree/Locker/pulls)MITPHPPHP ^7.1.3 || ^8.0

Since Dec 7Pushed 4y ago3 watchersCompare

[ Source](https://github.com/AltThree/Locker)[ Packagist](https://packagist.org/packages/alt-three/locker)[ RSS](/packages/alt-three-locker/feed)WikiDiscussions 6.4 Synced 1mo ago

READMEChangelog (10)Dependencies (7)Versions (33)Used By (0)

[![Alt Three Locker](https://user-images.githubusercontent.com/2829600/71490848-0de16e00-2825-11ea-952d-b8ce47656401.png)](https://user-images.githubusercontent.com/2829600/71490848-0de16e00-2825-11ea-952d-b8ce47656401.png)

[![Build Status](https://camo.githubusercontent.com/97076f2e56b0bf1489f8a347a1dd0c3a70fe92bc3e8cbc85f03667539fbdadec/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f416c7454687265652f4c6f636b65722f54657374733f6c6162656c3d5465737473267374796c653d666c61742d737175617265)](https://github.com/AltThree/Locker/actions?query=workflow%3ATests)[![StyleCI Status](https://camo.githubusercontent.com/2afbadb2613abee83cf1d9bb02988491014a81c1a78a86b2cd56d29da47103ff/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f34373534393333372f736869656c64)](https://github.styleci.io/repos/47549337)[![Software License](https://camo.githubusercontent.com/c090e080484e2a2bc766446291d04437db823929042bf614b26a1643660ddf6f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e3f7374796c653d666c61742d737175617265)](LICENSE)[![Packagist Downloads](https://camo.githubusercontent.com/f33471e47f933259556128904521dda77782af6463f791bfc274822970bf743e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616c742d74687265652f6c6f636b65723f7374796c653d666c61742d737175617265)](https://packagist.org/packages/alt-three/locker)[![Latest Version](https://camo.githubusercontent.com/30e7909dd74e3686e14be96231f680f4f8d9999b9c997063192bff41b612fb6b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f416c7454687265652f4c6f636b65723f7374796c653d666c61742d737175617265)](https://github.com/AltThree/Locker/releases)

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

[](#installation)

Alt Three Locker is a lock manager for Laravel. This version requires [PHP](https://php.net) 7.1-8.0, and supports Laravel 5.5-8. Simply require the package using [Composer](https://getcomposer.org):

```
$ composer require alt-three/locker:^6.4
```

Once installed, if you are not using automatic package discovery, then you need to register the `AltThree\Locker\LockerServiceProvider` service provider in your `config/app.php`.

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

[](#configuration)

Alt Three Locker requires configuration.

To get started, you'll need to publish all vendor assets:

```
$ php artisan vendor:publish
```

This will create a `config/locker.php` file in your app that you can modify to set your configuration. Also, make sure you check for changes to the original config file in this package between releases.

Usage
-----

[](#usage)

Alt Three Locker provides a locker class which should be used to execute critical tasks while acquiring a lock to do so. We also have a locker middleware which will acquire a lock on a per session basis to perform "unsafe" tasks, or in other words, we're preventing more than one non-GET request from being processed at once per user.

Security
--------

[](#security)

Our full security policy is available to read [here](https://github.com/AltThree/Locker/security/policy).

License
-------

[](#license)

Alt Three Locker is licensed under [The MIT License (MIT)](LICENSE).

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity48

Moderate usage in the ecosystem

Community17

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor1

Top contributor holds 95.9% 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 ~53 days

Total

33

Last Release

2123d ago

Major Versions

v1.6.0 → v2.0.02017-01-01

2.0.x-dev → v3.0.02017-08-06

v3.0.1 → v4.0.02018-03-03

v4.3.1 → v5.0.02019-07-05

5.1.x-dev → v6.0.02019-08-26

PHP version history (4 changes)v1.0.0PHP &gt;=5.5.9

v3.0.0PHP ^7.0

v4.0.0PHP ^7.1.3

v6.4.0PHP ^7.1.3 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/d95eb26cb8f3919bb5ca3b6d823daeabbf259663778a970349b245c580713c8e?d=identicon)[graham-campbell](/maintainers/graham-campbell)

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

![](https://www.gravatar.com/avatar/9e4934b15ff7d8cffabece955994bed29b31429f4c2e8f13fa0868c753bb1c30?d=identicon)[jbrooksuk](/maintainers/jbrooksuk)

---

Top Contributors

[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (116 commits)")[![jbrooksuk](https://avatars.githubusercontent.com/u/246103?v=4)](https://github.com/jbrooksuk "jbrooksuk (5 commits)")

---

Tags

lockingAlt Threelocker

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/alt-three-locker/health.svg)

```
[![Health](https://phpackages.com/badges/alt-three-locker/health.svg)](https://phpackages.com/packages/alt-three-locker)
```

###  Alternatives

[illuminate/pipeline

The Illuminate Pipeline package.

9346.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[illuminate/broadcasting

The Illuminate Broadcasting package.

7126.5M178](/packages/illuminate-broadcasting)[illuminate/redis

The Illuminate Redis package.

8314.0M314](/packages/illuminate-redis)[bensampo/laravel-embed

Painless responsive embeds for videos, slideshows and more.

142146.8k](/packages/bensampo-laravel-embed)

PHPackages © 2026

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