PHPackages                             havvg/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. havvg/lock

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

havvg/lock
==========

A component for simple resource locking.

v2.0.0(12y ago)54.4k11MITPHP

Since May 16Pushed 11y ago2 watchersCompare

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

READMEChangelogDependencies (1)Versions (4)Used By (1)

Havvg Lock Component
====================

[](#havvg-lock-component)

[![Build Status](https://camo.githubusercontent.com/d3a562cfb042b8ac61440b168d6dda6cce73a641953b71e8ce6fa3d1adfc9eae/68747470733a2f2f7472617669732d63692e6f72672f68617676672f4c6f636b2e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/havvg/Lock)

This component provides an abstraction to manage locked resources.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 91.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 ~3 days

Total

3

Last Release

4736d ago

Major Versions

v1.1.0 → v2.0.02013-05-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/5b63441a1dd6a38264525b55bc81181fa69af022a9dafff46610d8f7fd407785?d=identicon)[havvg](/maintainers/havvg)

---

Top Contributors

[![havvg](https://avatars.githubusercontent.com/u/126898?v=4)](https://github.com/havvg "havvg (11 commits)")[![h4cc](https://avatars.githubusercontent.com/u/2981491?v=4)](https://github.com/h4cc "h4cc (1 commits)")

---

Tags

componentlockphplockinglock

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[symfony/lock

Creates and manages locks, a mechanism to provide exclusive access to a shared resource

514127.6M457](/packages/symfony-lock)[pudongping/hyperf-wise-locksmith

A mutex library provider for the Hyperf framework, designed to enable serialized execution of PHP code in high-concurrency scenarios.

106.3k2](/packages/pudongping-hyperf-wise-locksmith)[zerkalica/semaphore

This library provides an api for semaphore acquire and release

1119.0k1](/packages/zerkalica-semaphore)[nabao/laravel-lock

高性能, 分布式, 并发抢占锁, 队列锁

271.5k](/packages/nabao-laravel-lock)

PHPackages © 2026

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