PHPackages                             bigstep/lock-mysql-innodb - 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. bigstep/lock-mysql-innodb

ActiveLibrary

bigstep/lock-mysql-innodb
=========================

Centralised blocking or non-blocking locks using MySQL's InnoDB transaction features.

313[1 PRs](https://github.com/bigstepinc/php-lock-mysql-innodb/pulls)PHP

Since Sep 19Pushed 6y ago2 watchersCompare

[ Source](https://github.com/bigstepinc/php-lock-mysql-innodb)[ Packagist](https://packagist.org/packages/bigstep/lock-mysql-innodb)[ RSS](/packages/bigstep-lock-mysql-innodb/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Centralized locking with InnoDB
===============================

[](#centralized-locking-with-innodb)

Centralised blocking or non-blocking locks using MySQL's InnoDB transaction features.

Requirements
============

[](#requirements)

- PHP &gt;= 7.2.0

Installation
============

[](#installation)

If you are using composer, run the following command in the root directory of your project.

```
composer require bigstep/lock-mysql-innodb

```

Usage
=====

[](#usage)

You will need a config with the following MySQL parameters:

```
$array = [
    "databaseName" => "databaseName",
    "port" => 3306,
    "host" => "localhost",
    "username" => "username",
    "password" => "password"
];

```

Then you can instantiate the MySQL InnoDB Driver and start acquiring locks.

```
$client = new LockInnoDB\Engines\MySQLInnoDB\Driver(/*\LockInnoDB\Engines\DriverBase*/ null, $array);

$client->acquire("Lock1", true);
$client->release("Lock1");

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 Bus Factor1

Top contributor holds 73.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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/7211d00c9687c87dbc8bc518fb871cbfb3bf3c5dfe78e9a5dd5b6b94ef46359c?d=identicon)[Adrian.Adam](/maintainers/Adrian.Adam)

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

---

Top Contributors

[![AdrianAdam21](https://avatars.githubusercontent.com/u/108394559?v=4)](https://github.com/AdrianAdam21 "AdrianAdam21 (14 commits)")[![oxygen](https://avatars.githubusercontent.com/u/4642698?v=4)](https://github.com/oxygen "oxygen (5 commits)")

### Embed Badge

![Health badge](/badges/bigstep-lock-mysql-innodb/health.svg)

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

PHPackages © 2026

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