PHPackages                             php-service-bus/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. php-service-bus/mutex

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

php-service-bus/mutex
=====================

PHP Mutex implementation

v5.2(1y ago)116.7k↑56.9%18MITPHPPHP &gt;=8.2CI failing

Since Mar 5Pushed 1y agoCompare

[ Source](https://github.com/php-service-bus/mutex)[ Packagist](https://packagist.org/packages/php-service-bus/mutex)[ RSS](/packages/php-service-bus-mutex/feed)WikiDiscussions v5.1 Synced 3w ago

READMEChangelog (10)Dependencies (7)Versions (36)Used By (8)

What is it?
-----------

[](#what-is-it)

[![Packagist](https://camo.githubusercontent.com/f2255fa1b8ebf1b9a740b2d5fffecb7d64f70d3565b1dd846fb2c916010e9db4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7068702d736572766963652d6275732f6d757465782e737667)](https://packagist.org/packages/php-service-bus/mutex)[![Packagist](https://camo.githubusercontent.com/120c275d1b8ca09b64c6fa40d709ea352db9fdc6042998a2cd8c45efb3e1d22f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7068702d736572766963652d6275732f6d757465782e737667)](https://packagist.org/packages/php-service-bus/mutex)[![Continuous Integration](https://github.com/php-service-bus/mutex/workflows/Continuous%20Integration/badge.svg)](https://github.com/php-service-bus/mutex/workflows/Continuous%20Integration/badge.svg)[![codecov](https://camo.githubusercontent.com/078149875d7b00dc74689c03039ac4baf78f5ca0b49e016a3754f6aa30b1a365/68747470733a2f2f636f6465636f762e696f2f67682f7068702d736572766963652d6275732f6d757465782f6272616e63682f76352e312f67726170682f62616467652e7376673f746f6b656e3d30624b776469756f3053)](https://codecov.io/gh/php-service-bus/mutex)[![Shepherd](https://camo.githubusercontent.com/baafeffcf0b57253aeda7adaba7b3cddfe6dcb42b762ca931a21e3aa79dc6463/68747470733a2f2f73686570686572642e6465762f6769746875622f7068702d736572766963652d6275732f6d757465782f636f7665726167652e737667)](https://shepherd.dev/github/php-service-bus/mutex)

This component is part of the [PHP Service Bus](https://github.com/php-service-bus/service-bus): mutexes implementation.

> The code is partly based on the [amp/sync](https://github.com/amphp/sync) project.

Contributing
------------

[](#contributing)

Contributions are welcome! Please read [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

### Communication Channels

[](#communication-channels)

You can find help and discussion in the following places:

- [Telegram chat (RU)](https://t.me/php_service_bus)
- [Twitter](https://twitter.com/PhpBus)
- Create issue

License
-------

[](#license)

The MIT License (MIT). Please see [LICENSE](LICENSE.md) for more information.

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance40

Moderate activity, may be stable

Popularity28

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity84

Battle-tested with a long release history

 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

Every ~63 days

Recently: every ~259 days

Total

35

Last Release

505d ago

Major Versions

v3.3.x-dev → v4.0.02019-11-30

v4.2.x-dev → v5.0.02021-02-04

PHP version history (6 changes)v3.0.8PHP &gt;=7.2

v3.3.0PHP &gt;=7.3

v4.0.0PHP &gt;=7.4

v4.2.x-devPHP &gt;=8.0

v5.1.2PHP &gt;=8.1

v5.2PHP &gt;=8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/195594?v=4)[Ruslan Strazhnyk](/maintainers/Desperado)[@Desperado](https://github.com/Desperado)

---

Top Contributors

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

---

Tags

componentmessagingcommand busasync-php

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/php-service-bus-mutex/health.svg)

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

###  Alternatives

[danog/madelineproto

Async PHP client API for the telegram MTProto protocol.

3.4k885.1k22](/packages/danog-madelineproto)[php-service-bus/service-bus

PHP Service Bus (publish-subscribe pattern)

35314.7k2](/packages/php-service-bus-service-bus)[php-service-bus/sagas

Saga pattern implementation

3914.7k5](/packages/php-service-bus-sagas)[simple-bus/asynchronous

Generic classes and interfaces for asynchronous messaging using SimpleBus

241.6M6](/packages/simple-bus-asynchronous)

PHPackages © 2026

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