PHPackages                             hope/locker - 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. hope/locker

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

hope/locker
===========

Process locker

v2.1.0(9y ago)11.1k[1 issues](https://github.com/HopeUA/locker/issues)MITPHPPHP &gt;=5.6

Since Jun 6Pushed 9y ago1 watchersCompare

[ Source](https://github.com/HopeUA/locker)[ Packagist](https://packagist.org/packages/hope/locker)[ RSS](/packages/hope-locker/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (3)Versions (15)Used By (0)

Process Locker for PHP scripts
==============================

[](#process-locker-for-php-scripts)

[![Test passing](https://camo.githubusercontent.com/1fb976f633f457bddf47bb254907068ce498409acaedac64afa0cebd5ab09e30/68747470733a2f2f7472617669732d63692e6f72672f486f706555412f6c6f636b65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/HopeUA/locker)[![Latest Stable Version](https://camo.githubusercontent.com/329e56843ff8ac4b14f5b68fdd45a94a6504011ab1566bba3149e7fc15e1d876/68747470733a2f2f706f7365722e707567782e6f72672f686f70652f6c6f636b65722f762f737461626c652e737667)](https://packagist.org/packages/hope/locker)

Usage
-----

[](#usage)

```
$locker = new FileLocker('large-process', ['lockDir' => '/tmp/lock']);
if ($locker->isLocked()) {
    die('Already locked');
}

$locker->lock();
... some code ...
$locker->unlock();

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity66

Established project with proven stability

 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 ~74 days

Recently: every ~14 days

Total

15

Last Release

3322d ago

Major Versions

v1.2.1 → v2.0.02017-01-27

PHP version history (2 changes)1.0.0PHP &gt;=5.4.0

v2.1.0PHP &gt;=5.6

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/63206024?v=4)[Ftornik](/maintainers/Ftornik)[@Ftornik](https://github.com/Ftornik)

---

Top Contributors

[![sergsadovyi](https://avatars.githubusercontent.com/u/1175636?v=4)](https://github.com/sergsadovyi "sergsadovyi (28 commits)")[![loevgaard](https://avatars.githubusercontent.com/u/2412177?v=4)](https://github.com/loevgaard "loevgaard (11 commits)")[![Ftornik](https://avatars.githubusercontent.com/u/63206024?v=4)](https://github.com/Ftornik "Ftornik (3 commits)")

---

Tags

lockerphplocker

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/hope-locker/health.svg)

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

###  Alternatives

[echo511/plupload

Plupload component for Nette Framework.

104.4k1](/packages/echo511-plupload)

PHPackages © 2026

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