Download the PHP package yriveiro/php-fslock without Composer
On this page you can find all versions of the php package yriveiro/php-fslock. 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 php-fslock
FSLock
A simple lock implementation using flock.
NOTE: to use php-backoff with PHP 5.x please use the lastet release of branch 2.x
Usage
If you want to use a custom path to store the locks, you should instantiate the FSLock like that
API
acquire
: Acquires the lock, returns true if the operation was successful otherwise the return is false.release
: Releases the lock, returns true if the operation was successful otherwise the return is false.id
: returns the lock id.getPath
: returns the lock path
Install
The recommended way to install this package is through Composer.
Tests
Tests are performed using the phpunit
library, to run them:
License
FSLock is licensed under MIT license.
All versions of php-fslock with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0.0
The package yriveiro/php-fslock contains the following files
Loading the files please wait ....