PHPackages                             tokenly/laravel-record-lock - 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. tokenly/laravel-record-lock

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

tokenly/laravel-record-lock
===========================

A locking library

v1.2.0(7y ago)216.6k1MITPHPPHP &gt;=5.5.0CI failing

Since Jul 7Pushed 6y ago4 watchersCompare

[ Source](https://github.com/tokenly/laravel-record-lock)[ Packagist](https://packagist.org/packages/tokenly/laravel-record-lock)[ RSS](/packages/tokenly-laravel-record-lock/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (4)Used By (1)

Record Lock
===========

[](#record-lock)

A Laravel library for creating a shared lock across an application. Requires a MySQL database connection.

Installation
============

[](#installation)

### Add the Laravel package via composer

[](#add-the-laravel-package-via-composer)

```
composer require tokenly/laravel-record-lock

```

### Add the Service Provider (Laravel &lt;= 5.4 only)

[](#add-the-service-provider-laravel--54-only)

Add the following to the `providers` array in your application config:

```
Tokenly\RecordLock\Provider\RecordLockServiceProvider::class

```

### Use it

[](#use-it)

```
use Tokenly\RecordLock\Facade\RecordLock;

$lock_id = 'plant-garden-once';
$planted = RecordLock::acquireAndExecute($lock_id, function() {
    // plant the garden
    //   only one process should do this at a time
    //   other processes will block until this is complete
    sleep(1);

    return true;
});
```

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 75% 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 ~243 days

Total

3

Last Release

2797d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3b86e6a54873d5dd61d3682a3be00127af3b7b2b5c53eb070b160e29789d4c0d?d=identicon)[dweller](/maintainers/dweller)

---

Top Contributors

[![deweller](https://avatars.githubusercontent.com/u/51414?v=4)](https://github.com/deweller "deweller (6 commits)")[![cryptonaut420](https://avatars.githubusercontent.com/u/8463048?v=4)](https://github.com/cryptonaut420 "cryptonaut420 (1 commits)")[![SlickTheNick](https://avatars.githubusercontent.com/u/1435056?v=4)](https://github.com/SlickTheNick "SlickTheNick (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tokenly-laravel-record-lock/health.svg)

```
[![Health](https://phpackages.com/badges/tokenly-laravel-record-lock/health.svg)](https://phpackages.com/packages/tokenly-laravel-record-lock)
```

###  Alternatives

[larswiegers/laravel-maps

A new way to handle maps in your laravel applications.

365138.8k2](/packages/larswiegers-laravel-maps)[mattvb91/caddy-php

Control your Caddy instance through PHP

318.4k](/packages/mattvb91-caddy-php)

PHPackages © 2026

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