PHPackages                             tsfcorp/mysql-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. [Database &amp; ORM](/categories/database)
4. /
5. tsfcorp/mysql-lock

ActiveLibrary[Database &amp; ORM](/categories/database)

tsfcorp/mysql-lock
==================

Provides a locking mechanism using mysql

v0.0.3(6y ago)09391MITPHPPHP &gt;=7.0CI failing

Since Nov 14Pushed 6y ago3 watchersCompare

[ Source](https://github.com/thesoftwarefarm/mysql-lock)[ Packagist](https://packagist.org/packages/tsfcorp/mysql-lock)[ RSS](/packages/tsfcorp-mysql-lock/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (2)Dependencies (3)Versions (4)Used By (0)

MySQL lock mechanism for Laravel
================================

[](#mysql-lock-mechanism-for-laravel)

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

[](#installation)

Require this package in your `composer.json` and update composer. Run the following command:

```
composer require tsfcorp/mysql-lock
```

After updating composer, the service provider will automatically be registered and enabled, along with the facade, using Auto-Discovery

Usage Instructions
==================

[](#usage-instructions)

`MysqlLock` library can be used when you don't want two processes to overlap

```
if ( ! MysqlLock::get($lock_name))
{
    // a lock already exists. Please try again later
}
```

Make sure that at the end of your script to always release the lock:

```
MysqlLock::release($lock_name);
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~367 days

Total

3

Last Release

2415d ago

### Community

Maintainers

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

---

Top Contributors

[![boydcl](https://avatars.githubusercontent.com/u/6942044?v=4)](https://github.com/boydcl "boydcl (1 commits)")[![ionutantohi](https://avatars.githubusercontent.com/u/4609521?v=4)](https://github.com/ionutantohi "ionutantohi (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tsfcorp-mysql-lock/health.svg)

```
[![Health](https://phpackages.com/badges/tsfcorp-mysql-lock/health.svg)](https://phpackages.com/packages/tsfcorp-mysql-lock)
```

###  Alternatives

[kirschbaum-development/eloquent-power-joins

The Laravel magic applied to joins.

1.6k29.9M42](/packages/kirschbaum-development-eloquent-power-joins)[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k8.0M88](/packages/mongodb-laravel-mongodb)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8723.1M23](/packages/yajra-laravel-oci8)[staudenmeir/laravel-adjacency-list

Recursive Laravel Eloquent relationships with CTEs

1.6k5.2M33](/packages/staudenmeir-laravel-adjacency-list)[bavix/laravel-wallet

It's easy to work with a virtual wallet.

1.3k1.2M19](/packages/bavix-laravel-wallet)[glushkovds/phpclickhouse-laravel

Adapter of the most popular library https://github.com/smi2/phpClickHouse to Laravel

2051.4M2](/packages/glushkovds-phpclickhouse-laravel)

PHPackages © 2026

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