Download the PHP package 13dagger/mutex without Composer
On this page you can find all versions of the php package 13dagger/mutex. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download 13dagger/mutex
More information about 13dagger/mutex
Files in 13dagger/mutex
Download 13dagger/mutex
More information about 13dagger/mutex
Files in 13dagger/mutex
Vendor 13dagger
Package mutex
Short Description Simple MutEx lock implementation based on directory creation
License GPL-3.0-or-later
Package mutex
Short Description Simple MutEx lock implementation based on directory creation
License GPL-3.0-or-later
Please rate this library. Is it a good library?
Informations about the package mutex
Simple MutEx lock implementation.
Gives you the easy way to check that your script runs as the only instance.
Basics
- try to lock, if ok -> run your program, else stop
- unlock when finished the job
Usage as php library
if (Mutex::lock('example_job')) {
// doing a job
}
by default library registers shutdown function to unlock, you can change this by changing the Mutex::$autoUnlock to
false and using Mutex::unlock() method
Usage as linux command
install:
./install
lock:
mutex lock some_action
unlock:
mutex unlock some_actionAll versions of mutex with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4
ext-posix Version *
ext-pcntl Version *
ext-posix Version *
ext-pcntl Version *
The package 13dagger/mutex contains the following files
Loading the files please wait ...