PHPackages                             stefano/stefano-lock-table - 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. [Database &amp; ORM](/categories/database)
4. /
5. stefano/stefano-lock-table

ActiveLibrary[Database &amp; ORM](/categories/database)

stefano/stefano-lock-table
==========================

Build lock table sql query

0.1.1(3y ago)05.7kBSD-3-ClausePHPPHP &gt;=7.1.0

Since Jan 23Pushed 3y ago1 watchersCompare

[ Source](https://github.com/bartko-s/stefano-lock-table)[ Packagist](https://packagist.org/packages/stefano/stefano-lock-table)[ Docs](https://github.com/bartko-s/stefano-lock-table)[ RSS](/packages/stefano-stefano-lock-table/feed)WikiDiscussions master Synced 2w ago

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

Stefano Lock Table
==================

[](#stefano-lock-table)

[![Build Status](https://camo.githubusercontent.com/cbec43620b357f0379a2605e41c4c42389a3525a51b98b2a6e5eef61cb2e7e86/68747470733a2f2f6170702e7472617669732d63692e636f6d2f626172746b6f2d732f73746566616e6f2d6c6f636b2d7461626c652e7376673f6272616e63683d6d6173746572)](https://app.travis-ci.com/bartko-s/stefano-lock-table)[![Coverage Status](https://camo.githubusercontent.com/19ac90c5e8a03483d4afcf3bb2dcda682c4f8b57b8a54b33d6eb663fc82e87a4/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f626172746b6f2d732f73746566616e6f2d6c6f636b2d7461626c652f62616467652e706e673f6272616e63683d6d6173746572)](https://coveralls.io/r/bartko-s/stefano-lock-table?branch=master)

Instalation using Composer
--------------------------

[](#instalation-using-composer)

1. Run command `composer require stefano/stefano-lock-table`

Features
--------

[](#features)

- build lock table sql string
- build unlock table sql string
- supported vendors mysql, postgresql

Usage
-----

[](#usage)

```
$factory = new \StefanoLockTable\Factory();

$vendor = 'Mysql'; //or any supported database
$adapter = $factory->createAdapter($vendor);

//build lock table sql string (exclusive lock)
$adapter->getLockSqlString('tableName');
$adapter->getLockSqlString(array('tableName', 'anotherTable'));

//build unlock table sql string
$adapter->getUnlockSqlString();

```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Every ~634 days

Recently: every ~793 days

Total

6

Last Release

1369d ago

PHP version history (3 changes)0.0.1PHP &gt;=5.3.0

0.1.0PHP &gt;=7.0.0

0.1.1PHP &gt;=7.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/12da8e2ce2685d50df256c7d302dff9de0eeab90057103170ec1c840d26eed19?d=identicon)[Stefano123](/maintainers/Stefano123)

---

Top Contributors

[![bartko-s](https://avatars.githubusercontent.com/u/675883?v=4)](https://github.com/bartko-s "bartko-s (21 commits)")

---

Tags

Lock-Table

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k116.5M113](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[pgvector/pgvector

pgvector support for PHP

198628.3k10](/packages/pgvector-pgvector)

PHPackages © 2026

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