PHPackages                             tim1116/redis-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. tim1116/redis-lock

ActiveLibrary[Caching](/categories/caching)

tim1116/redis-lock
==================

redis实现分布式锁

v1.0(5y ago)16MITPHPPHP &gt;=7.1

Since Mar 25Pushed 5y ago1 watchersCompare

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

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

redisLock
=========

[](#redislock)

使用redis实现分布式锁

### Installation

[](#installation)

```
composer require tim1116/redis-lock

```

### 开发指南

[](#开发指南)

###### 代码格式

[](#代码格式)

使用PHP-CS-Fixer格式化代码

```
php-cs-fixer fix .

```

- 参考：

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

1872d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/131b70e24af3ca16bb501003696fc285b084482afdf6c676bb00172e77eed856?d=identicon)[Tim Xiao](/maintainers/Tim%20Xiao)

---

Top Contributors

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

---

Tags

lockphpphp7redisredislock

### Embed Badge

![Health badge](/badges/tim1116-redis-lock/health.svg)

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

###  Alternatives

[predis/predis

A flexible and feature-complete Redis/Valkey client for PHP.

7.8k305.7M2.4k](/packages/predis-predis)[snc/redis-bundle

A Redis bundle for Symfony

1.0k39.4M67](/packages/snc-redis-bundle)[clue/redis-protocol

A streaming Redis protocol (RESP) parser and serializer written in pure PHP.

5311.0M13](/packages/clue-redis-protocol)[rtcamp/nginx-helper

Cleans nginx's fastcgi/proxy cache or redis-cache whenever a post is edited/published. Also provides cloudflare edge cache purging with Cache-Tags.

23817.0k1](/packages/rtcamp-nginx-helper)[icecave/chastity

Distributed advisory locking for PHP.

1513.3k](/packages/icecave-chastity)[rtckit/react-redlock

Asynchronous distributed locks with Redis and ReactPHP

177.8k1](/packages/rtckit-react-redlock)

PHPackages © 2026

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