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

ActiveLibrary

hgraca/lock
===========

A generic PHP library to control concurrent access to resources.

1.0.0(9y ago)022MITPHPPHP &gt;=7.0

Since Nov 27Pushed 9y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (4)Versions (3)Used By (0)

Hgraca\\Lock
============

[](#hgracalock)

[![Author](https://camo.githubusercontent.com/e80528a6fbd7a1766b221b1a32d700b339f6a1992a8e0a1f602d24c256c74d66/687474703a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d406867726163612d626c75652e7376673f7374796c653d666c61742d737175617265)](https://www.herbertograca.com)[![Software License](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Latest Version](https://camo.githubusercontent.com/f7ed95cf9cdcb269e63c1c2fbfaa2a1d8b086a5d27666ab54dc9fd04a926f551/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6867726163612f7068702d6c6f636b2e7376673f7374796c653d666c61742d737175617265)](https://github.com/hgraca/php-lock/releases)[![Total Downloads](https://camo.githubusercontent.com/e5d61eda8e8dd58831be475437d2fe02f7e2601ad9f731c1d1b4662bd4d2276a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6867726163612f6c6f636b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/hgraca/lock)

[![Build Status](https://camo.githubusercontent.com/560c99fdadc3b2d4cd6341a4030d87334b821e26a0253581ff1f321bd740eae9/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f6275696c642f672f6867726163612f7068702d6c6f636b2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/hgraca/php-lock/build)[![Coverage Status](https://camo.githubusercontent.com/dd53f9dcf071968964d4816024000a949a3a011036a9de58bd9aa957c0a21a0a/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6867726163612f7068702d6c6f636b2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/hgraca/php-lock/code-structure)[![Quality Score](https://camo.githubusercontent.com/472094a7367b226fdc37b9b8f81bd600044be7f65d073d74bcb046a2ad812b08/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6867726163612f7068702d6c6f636b2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/hgraca/php-lock)

A generic PHP library to control concurrent access to resources.

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

[](#installation)

To install the library, run the command below and you will get the latest version:

```
composer require hgraca/lock

```

Todo
----

[](#todo)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

3455d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4af14428505ab93e698bb1fa7a540b0f71dbae0246b6c534f39011aaafc13717?d=identicon)[hgraca](/maintainers/hgraca)

---

Top Contributors

[![hgraca](https://avatars.githubusercontent.com/u/1809002?v=4)](https://github.com/hgraca "hgraca (9 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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