PHPackages                             pudongping/wise-locksmith - 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. pudongping/wise-locksmith

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

pudongping/wise-locksmith
=========================

Mutex library for exclusive code execution.

1.0.1(2y ago)47.6k↓31.1%11MITPHPPHP &gt;=7.1

Since Aug 20Pushed 2y ago1 watchersCompare

[ Source](https://github.com/pudongping/wise-locksmith)[ Packagist](https://packagist.org/packages/pudongping/wise-locksmith)[ Docs](https://github.com/pudongping/wise-locksmith)[ RSS](/packages/pudongping-wise-locksmith/feed)WikiDiscussions master Synced yesterday

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

wise-locksmith
==============

[](#wise-locksmith)

[![Latest Stable Version](https://camo.githubusercontent.com/9deee44a9b6981c0435754723c5114bc1ea29feb28ad568ad253465014b9d968/68747470733a2f2f706f7365722e707567782e6f72672f7075646f6e6770696e672f776973652d6c6f636b736d6974682f762f737461626c652e737667)](https://packagist.org/packages/pudongping/wise-locksmith)[![Total Downloads](https://camo.githubusercontent.com/e860735a06ea3c543e683456d4d4c96220de04e13e04f989a75267353362d8af/68747470733a2f2f706f7365722e707567782e6f72672f7075646f6e6770696e672f776973652d6c6f636b736d6974682f646f776e6c6f6164732e737667)](https://packagist.org/packages/pudongping/wise-locksmith)[![Latest Unstable Version](https://camo.githubusercontent.com/e7e558daf349be62dcf197b4dfd60edb78403327beaaacf305e4110858844e3e/68747470733a2f2f706f7365722e707567782e6f72672f7075646f6e6770696e672f776973652d6c6f636b736d6974682f762f756e737461626c652e737667)](https://packagist.org/packages/pudongping/wise-locksmith)[![Minimum PHP Version](https://camo.githubusercontent.com/be3b30c4ceb47b639794ebe0895f4fec6871dd53b2d7ae58d654a2018c3844fb/687474703a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230372e312d3838393242462e737667)](https://php.net/)[![Packagist](https://camo.githubusercontent.com/7466cc878dcf80fb8be6de8b1ea77a79e17a659161dd9530a57cd892584f3f8d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7075646f6e6770696e672f776973652d6c6f636b736d6974682e737667)](https://github.com/pudongping/wise-locksmith)[![License](https://camo.githubusercontent.com/f4857832b68dc3bc92f9af42fac85a5906bf16cb7d2384dd37cabc7bc9f4b8ad/68747470733a2f2f706f7365722e707567782e6f72672f7075646f6e6770696e672f776973652d6c6f636b736d6974682f6c6963656e7365)](https://packagist.org/packages/pudongping/wise-locksmith)

English | [中文](./README-ZH.md)

🔒 A framework-agnostic mutex library designed to facilitate serialized execution of PHP code in high-concurrency scenarios.

Requirements
------------

[](#requirements)

- PHP &gt;= 7.1 or above
- Redis &gt;= 2.6.12 or above (required for distributed locks or Redlock)
- Swoole &gt;= 4.5 or above (required for coroutine-level mutex locks)

Installation
------------

[](#installation)

```
composer require pudongping/wise-locksmith
```

Quickstart
----------

[](#quickstart)

```
