Download the PHP package team-a/lock without Composer
On this page you can find all versions of the php package team-a/lock. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package lock
lock
Exclusive & Read/Write locking based on MySQL Locking Service
Requirements
- php >= 7.1
- PDO extension
Need to install the locking service UDFs as described in MySQL docs:
https://dev.mysql.com/doc/refman/8.0/en/locking-service-udf-interface.html
Install via Composer
composer require team-a/lock:^1.2.0
Examples
-
Inject PDO instance promise. You can create lazy instance of PDO.
-
Define and use your own lock class based on TeamA\Lock\AbstractDBExclusive or TeamA\Lock\AbstractDBExtended.
-
Exclusive lock example:
- Read/Write locking example:
All versions of lock with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.1
ext-pdo Version *
ext-pdo Version *
The package team-a/lock contains the following files
Loading the files please wait ....