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

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

klapuch/lock
============

Locking mechanisms

0.2.0(5y ago)0374MITPHPPHP &gt;=7.3

Since Dec 12Pushed 5y ago1 watchersCompare

[ Source](https://github.com/klapuch/Lock)[ Packagist](https://packagist.org/packages/klapuch/lock)[ Docs](https://github.com/klapuch/Lock)[ RSS](/packages/klapuch-lock/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (4)Versions (5)Used By (0)

Lock
====

[](#lock)

[![Build Status](https://camo.githubusercontent.com/5ffdbd5678436ed2fb354f7dc1c3b5ec8b6723fc5b166700c3a11beb7470e679/68747470733a2f2f7472617669732d63692e636f6d2f6b6c61707563682f4c6f636b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/klapuch/Lock)

Lock mechanisms

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

[](#installation)

- `composer require klapuch/lock`

Keep one instance of [SemaphoreFactory](Core/SemaphoreFactory.php), because locks don't work correctly.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.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 ~82 days

Total

4

Last Release

2149d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/17772194?v=4)[Dominik Klapuch](/maintainers/klapuch)[@klapuch](https://github.com/klapuch)

---

Top Contributors

[![h4kuna](https://avatars.githubusercontent.com/u/335722?v=4)](https://github.com/h4kuna "h4kuna (2 commits)")[![klapuch](https://avatars.githubusercontent.com/u/17772194?v=4)](https://github.com/klapuch "klapuch (1 commits)")

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[gomachan46/state-machine

simple state machine with annotations for PHP, inspired by AASM known as a Ruby state machine.

1897.8k](/packages/gomachan46-state-machine)[chellem/youtube-downloader

PHP library to download video

686.2k](/packages/chellem-youtube-downloader)[suarez/laravel-utm-parameter

A little helper to store and handle utm-parameter

1516.9k](/packages/suarez-laravel-utm-parameter)

PHPackages © 2026

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