PHPackages                             tinywan/webman-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. [Caching](/categories/caching)
4. /
5. tinywan/webman-lock

ActiveLibrary[Caching](/categories/caching)

tinywan/webman-lock
===================

Webman plugin tinywan/webman-lock

v0.0.2(2y ago)63921MITPHPPHP &gt;=7.2

Since Jun 7Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Tinywan/webman-lock)[ Packagist](https://packagist.org/packages/tinywan/webman-lock)[ RSS](/packages/tinywan-webman-lock/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (3)Used By (0)

based on lua script redis lock for webman plugin
================================================

[](#based-on-lua-script-redis-lock-for-webman-plugin)

[![Latest Stable Version](https://camo.githubusercontent.com/7557596f7a1640893f29cd3929b97438b4c9787daab7127f6fdbc53fa611196b/687474703a2f2f706f7365722e707567782e6f72672f74696e7977616e2f7765626d616e2d6c6f636b2f76)](https://packagist.org/packages/tinywan/webman-lock)[![Total Downloads](https://camo.githubusercontent.com/80abf5d4ecf1ed888629752cdf88c9886b4ea1b5cad4474bbe3ecf1c3f59c218/687474703a2f2f706f7365722e707567782e6f72672f74696e7977616e2f7765626d616e2d6c6f636b2f646f776e6c6f616473)](https://packagist.org/packages/tinywan/webman-lock)[![Latest Unstable Version](https://camo.githubusercontent.com/e4aa6d87cd687f2b06190fcda6790230cbe957463242cb5047e1fa5ae1df919c/687474703a2f2f706f7365722e707567782e6f72672f74696e7977616e2f7765626d616e2d6c6f636b2f762f756e737461626c65)](https://packagist.org/packages/tinywan/webman-lock)[![License](https://camo.githubusercontent.com/faa8b59ab39525717af9ba89f878e6b10fa5d268f3a7bdbb3ca9911d914958ee/687474703a2f2f706f7365722e707567782e6f72672f74696e7977616e2f7765626d616e2d6c6f636b2f6c6963656e7365)](https://packagist.org/packages/tinywan/webman-lock)[![PHP Version Require](https://camo.githubusercontent.com/b9a4cc60c58ffdaa1ae2bb4d5254c85d59dc5bcad4e741d77996d4702157de92/687474703a2f2f706f7365722e707567782e6f72672f74696e7977616e2f7765626d616e2d6c6f636b2f726571756972652f706870)](https://packagist.org/packages/tinywan/webman-lock)

安装
--

[](#安装)

```
composer require tinywan/webman-lock
```

使用
--

[](#使用)

```
// 锁名称
$lockName = md5((string) time());
// 锁标识
$lockId = \Tinywan\Lock\RedisLock::acquire($lockName);
if (!$lockId) {
    return '未获得锁标识，请稍后再试';
}

// 业务处理

// 释放锁
\Tinywan\Lock\RedisLock::release($lockName, $lockId);
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 85.7% 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 ~675 days

Total

2

Last Release

766d ago

### Community

Maintainers

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

---

Top Contributors

[![Tinywan](https://avatars.githubusercontent.com/u/14959876?v=4)](https://github.com/Tinywan "Tinywan (6 commits)")[![bilulanlv](https://avatars.githubusercontent.com/u/90918529?v=4)](https://github.com/bilulanlv "bilulanlv (1 commits)")

---

Tags

lockredisredis-locktinywanwebmanworkerman

###  Code Quality

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/tinywan-webman-lock/health.svg)

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

###  Alternatives

[react/cache

Async, Promise-based cache interface for ReactPHP

444112.4M40](/packages/react-cache)[wp-media/wp-rocket

Performance optimization plugin for WordPress

7431.3M3](/packages/wp-media-wp-rocket)[illuminate/cache

The Illuminate Cache package.

12835.6M1.4k](/packages/illuminate-cache)[colinmollenhour/php-redis-session-abstract

A Redis-based session handler with optimistic locking

6325.6M14](/packages/colinmollenhour-php-redis-session-abstract)[cheprasov/php-redis-client

Php client for Redis. It is a fast, fully-functional and user-friendly client for Redis, optimized for performance. RedisClient supports the latest versions of Redis starting from 2.6 to 6.0

1281.2M21](/packages/cheprasov-php-redis-client)[amphp/redis

Efficient asynchronous communication with Redis servers, enabling scalable and responsive data storage and retrieval.

165634.7k44](/packages/amphp-redis)

PHPackages © 2026

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