PHPackages                             youngyezi/mutex - 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. youngyezi/mutex

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

youngyezi/mutex
===============

Redis mutex for Lumen，Lumen 分布式锁

v1.0.0(7y ago)08MITPHPPHP &gt;=5.6.4

Since Dec 27Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Youngyezi/mutex)[ Packagist](https://packagist.org/packages/youngyezi/mutex)[ RSS](/packages/youngyezi-mutex/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (2)Used By (0)

Redis mutex for Lumen
=====================

[](#redis-mutex-for-lumen)

redis 分布式锁

install
-------

[](#install)

```
composer require youngyezi/mutex

```

usge
----

[](#usge)

```
use Youngyezi\Mutex\Mutex;

$mutex = new Mutex();

if( $mutex->lock("test") ) {

    //do something

    ...

    $mutex->unlock("test");
}

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

2695d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/522583582e8966e792fec3527a1ef4619e772dc9b3e362d193de8924c8d05b19?d=identicon)[Youngyezi](/maintainers/Youngyezi)

---

Top Contributors

[![Youngyezi](https://avatars.githubusercontent.com/u/8175293?v=4)](https://github.com/Youngyezi "Youngyezi (4 commits)")

### Embed Badge

![Health badge](/badges/youngyezi-mutex/health.svg)

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

###  Alternatives

[joomlatools/composer

A Composer plugin to install Joomla extensions into your installation.

5332.9k24](/packages/joomlatools-composer)[imanghafoori/laravel-temp-tag

Laravel Temporary Tag simplify tagging Eloquent models.

1018.6k](/packages/imanghafoori-laravel-temp-tag)[pipecraft/flarum-ext-id-slug

A Flarum extension. Use id as slug in discussion URL.

186.2k](/packages/pipecraft-flarum-ext-id-slug)[pantheon-systems/pantheon-hud

Provide situational awareness of the Pantheon platform from within your WordPress dashboard.

175.7k](/packages/pantheon-systems-pantheon-hud)

PHPackages © 2026

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