ferrumfist / locker
There is no license information available for the latest version (1.0.0) of this package.
1.0.0
2022-08-08 12:44 UTC
Requires
- ext-json: *
Requires (Dev)
- php-di/php-di: ^6.4
- phpunit/phpunit: ^9.5
- vimeo/psalm: ^4.26
This package is auto-updated.
Last update: 2024-10-15 17:47:59 UTC
README
PHP library performs resource locking
Installation
composer require ferrumfist/locker
Usage
$store = new FileStore(__DIR__ . '/stores'); $locker = new Locker($store); $resource = new LockResource('ResourceName'); if($locker->lock($resource)){ echo "Resource was successfully locked" . PHP_EOL; } else { echo "Resource could not be locked" . PHP_EOL; }