lib pid-manager
PID manager to lock php file execution
nona-creative/pid-manager
PID manager to lock php file execution
- Thursday, January 11, 2018
- by SkippyZA
- Repository
- 3 Watchers
- 1 Stars
- 223 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 1 Forks
- 0 Open issues
- 5 Versions
- 5 % Grown
PID Manager
PID manager to lock php file execution., (*1)
Installation
Install the latest version, (*2)
composer require nona-creative/pid-manager
, (*3)
Basic Usage
``` php
<?php, (*4)
$pidManager = new \Nona\PidManager('test.lock', './');, (*5)
$pidManager->withLock(function() {
// Do your processing here
// ...
});, (*6)
``` php
<?php
$pidManager = new \Nona\PidManager('test.lock', './');
if (!$pidManager->isLocked()) {
try {
$pidManager->lock();
// Do your processing here
// ...
} finally {
$pidManager->unlock();
}
}
dev-master
9999999-dev
PID manager to lock php file execution
Sources
Download
MIT
The Requires
by
Steven Inskip
v0.1.3
0.1.3.0
PID manager to lock php file execution
Sources
Download
MIT
The Requires
by
Steven Inskip
v0.1.2
0.1.2.0
PID manager to lock php file execution
Sources
Download
MIT
The Requires
by
Steven Inskip
v0.1.1
0.1.1.0
PID manager to lock php file execution
Sources
Download
MIT
The Requires
by
Steven Inskip
v0.1
0.1.0.0
PID manager to lock php file execution
Sources
Download
MIT
The Requires
by
Steven Inskip