PHPackages                             kaadon/thinkqueue - 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. kaadon/thinkqueue

ActiveLibrary

kaadon/thinkqueue
=================

kaadon think queue for PHP

017PHP

Since Aug 6Pushed 1y ago1 watchersCompare

[ Source](https://github.com/kaadon/ThinkQueue)[ Packagist](https://packagist.org/packages/kaadon/thinkqueue)[ RSS](/packages/kaadon-thinkqueue/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

KaadonLock
==========

[](#kaadonlock)

PHP阻塞锁和非阻塞锁机制，内置解决并发锁重复执行的方案。目前支持文件、Redis、Memcached。

composer安装
----------

[](#composer安装)

1.1 在你项目中的安装composer包：

```
composer require kaadon/lock
```

1.2 使用composer命令行安装：

```
// 文件
$fp = fopen('1.txt', 'w+');
$lock = new \Yurun\Until\Lock\File('我是锁名称', $fp);
$lock->lock();
// 做一些事情
$lock->unlock();
fclose($fp);

// redis、memcached同理
$redis = new \Redis;
$redis->connect($host, $port, $timeout);
$lock = new \Yurun\Until\Lock\Redis('我是锁名称', $$redis);
$lock->lock();
// 做一些事情
$lock->unlock();
redis->close();
```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity17

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/58987658?v=4)[Kaadon](/maintainers/kaadon)[@kaadon](https://github.com/kaadon)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/kaadon-thinkqueue/health.svg)

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

PHPackages © 2026

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