0.05
Laravel 5 – 8
PHP 7.1+
Repository is archived
No commit activity in last 2 years
No release in over 2 years
A lock manager for Laravel
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

graham-campbell/analyzer
^2.4 || ^3.0
graham-campbell/testbench
^5.5
phpunit/phpunit
^6.5 || ^7.5 || ^8.4 || ^9.0
predis/predis
^1.1

Runtime

^5.5 || ^6.0 || ^7.0 || ^8.0
^5.5 || ^6.0 || ^7.0 || ^8.0
^5.5 || ^6.0 || ^7.0 || ^8.0
 Project Readme

Alt Three Locker

Build Status StyleCI Status Software License Packagist Downloads Latest Version

Installation

Alt Three Locker is a lock manager for Laravel. This version requires PHP 7.1-8.0, and supports Laravel 5.5-8. Simply require the package using Composer:

$ 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

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

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

Our full security policy is available to read here.

License

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