Download the PHP package newclass/claudo without Composer
On this page you can find all versions of the php package newclass/claudo. 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 claudo
README
What is Claudo?
Claudo is a PHP semaphore system. Helper for async execute code.
Installation
The best way to install is to use the composer by command:
composer require newclass/claudo
composer install
Use example
use Claudo\Semaphore;
use Claudo\SemaphoreBatch;
$semaphoreBatch = new SemaphoreBatch();
$semaphoreBatch->add(new Semaphore('test1', '.'));
$semaphoreBatch->add(new Semaphore('test2'));
$result = $semaphoreBatch->synchronize(function (Semaphore $semaphore) {
$var = $semaphore->get('var', null);
if (!$var) {
$var = 0;
}
++$var;
$semaphore->set('var', $var);
return sprintf('finish: %s, result: %d',$semaphore->getName(),$var);
});
echo $result;
All versions of claudo with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.6.0
ext-json Version *
ext-json Version *
The package newclass/claudo contains the following files
Loading the files please wait ....