PHPackages                             thesebas/runlock - 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. thesebas/runlock

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

thesebas/runlock
================

1.1.0(8y ago)0946MITPHP

Since Oct 10Pushed 8y ago1 watchersCompare

[ Source](https://github.com/thesebas/runlock)[ Packagist](https://packagist.org/packages/thesebas/runlock)[ RSS](/packages/thesebas-runlock/feed)WikiDiscussions master Synced 5d ago

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

runlock
=======

[](#runlock)

Help
----

[](#help)

```
runlock
    acquire/free lock

    exit codes:
    0 - lock acquired
    1 - failed acquiring lock
    2 - other error

Options:
  -a, --action       `lock`, `unlock` or `reset` [default: `lock`]
  -l, --lockname     lock name
  -n, --count        how many locks can be acquired [default: 1]
  -d, --delay        delay running script rand(0, n) seconds
  -c, --config       path to file with params in .ini format [default: /etc/runlock/config.ini]
  -v, --verbose           verbose mode
  -h, --help              show help

```

How to install
--------------

[](#how-to-install)

```
composer global require thesebas/runlock:dev-master
```

How to use
----------

[](#how-to-use)

In `crontab`

```
*/15 * * * * runlock -l lockname && (job_to_do.sh || runlock -a unlock -l lockname)
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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

Every ~352 days

Total

2

Last Release

3202d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e88ca2d7f73ceff94c308858b21961859448f73770f40d230788e9e947317297?d=identicon)[thesebas](/maintainers/thesebas)

---

Top Contributors

[![thesebas](https://avatars.githubusercontent.com/u/827416?v=4)](https://github.com/thesebas "thesebas (15 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/thesebas-runlock/health.svg)

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

###  Alternatives

[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k8.4M96](/packages/mongodb-laravel-mongodb)[niels-de-blaauw/php-doc-check

Command line tool that identifies code that needs documentation.

43243.4k4](/packages/niels-de-blaauw-php-doc-check)

PHPackages © 2026

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