2017 © Pedro Peláez
 

yii2-extension yii2-multithreading

Multithreading class for php 5.3+

image

grandmasterx/yii2-multithreading

Multithreading class for php 5.3+

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 1 Versions
  • 7 % Grown

The README.md

Multithreading class for php 5.3+

Multithreading class for php 5.3+, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist grandmasterx/yii2-multithreading "*"

or add, (*4)

"grandmasterx/yii2-multithreading": "*"

to the require section of your composer.json file., (*5)

Usage

Once the extension is installed, simply use it in your code by :, (*6)

$threads = new Threads;
$threads->newThread(dirname(__FILE__).'/file.php', array());
while (false !== ($result = $threads->iteration())) {
    if (!empty($result)) {
        echo $result."\r\n";
    }
}
echo (date("H:i:s"));
$end = microtime(true);
echo "Execution time ".round($end - $start, 2)."\r\n";
die;

The Versions

27/01 2015

dev-master

9999999-dev

Multithreading class for php 5.3+

  Sources   Download

MIT

The Requires

 

extension yii2