2017 © Pedro Peláez
 

library fork-helper

Simple class to fork processes in PHP and allow multi-threading

image

eaglewu/fork-helper

Simple class to fork processes in PHP and allow multi-threading

  • Saturday, November 19, 2016
  • by eaglewu
  • Repository
  • 1 Watchers
  • 1 Stars
  • 28 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 18 Forks
  • 0 Open issues
  • 10 Versions
  • 0 % Grown

The README.md

fork-helper

Simple class to fork processes in PHP and allow multi-threading., (*1)

Full documentation is available at http://duncan3dc.github.io/fork-helper/
PHPDoc API documentation is also available at http://duncan3dc.github.io/fork-helper/api/, (*2)

Build Status Latest Stable Version, (*3)

Quick Example

Run some code asynchronously:, (*4)

$fork = new \duncan3dc\Forker\Fork;

$fork->call(function () {
    for ($i = 1; $i <= 3; $i++) {
        echo "Process A - " . $i . "\n";
        sleep(1);
    }
});
$fork->call(function () {
    for ($i = 1; $i < 3; $i++) {
        echo "Process B - " . $i . "\n";
        sleep(1);
    }
});

sleep(1);
echo "Waiting for the threads to finish...\n";
$fork->wait();
echo "End\n";

Read more at http://duncan3dc.github.io/fork-helper/, (*5)

Changelog

A Changelog has been available since version 2.0.0, (*6)

Where to get help

Found a bug? Got a question? Just not sure how something works?
Please create an issue and I'll do my best to help out.
Alternatively you can catch me on Twitter, (*7)

The Versions

19/11 2016

dev-master

9999999-dev https://github.com/eaglewu/fork-helper

Simple class to fork processes in PHP and allow multi-threading

  Sources   Download

Apache-2.0

The Requires

  • php ^7.0

 

The Development Requires

process control pcntl fork multi-threading

19/11 2016

2.0.1

2.0.1.0 https://github.com/eaglewu/fork-helper

Simple class to fork processes in PHP and allow multi-threading

  Sources   Download

Apache-2.0

The Requires

  • php ^7.0

 

The Development Requires

process control pcntl fork multi-threading

16/10 2016

2.0.0

2.0.0.0 https://github.com/duncan3dc/fork-helper

Simple class to fork processes in PHP and allow multi-threading

  Sources   Download

Apache-2.0

The Requires

  • php ^7.0

 

The Development Requires

process control pcntl fork multi-threading

28/06 2015

1.1.5

1.1.5.0 https://github.com/duncan3dc/fork-helper

Simple class to fork processes in PHP and allow multi-threading

  Sources   Download

Apache-2.0

The Requires

  • ext-pcntl *
  • ext-shmop *
  • php >=5.4.0

 

process control pcntl fork multi-threading

28/10 2014

1.1.4

1.1.4.0 https://github.com/duncan3dc/fork-helper

Simple class to fork processes in PHP and allow multi-threading

  Sources   Download

Apache-2.0

The Requires

  • ext-pcntl *
  • ext-shmop *
  • php >=5.4.0

 

process control pcntl fork multi-threading

24/09 2014

1.1.3

1.1.3.0 https://github.com/duncan3dc/fork-helper

Simple class to fork processes in PHP and allow multi-threading

  Sources   Download

Apache-2.0

The Requires

  • ext-pcntl *
  • ext-shmop *
  • php >=5.4.0

 

process control pcntl fork multi-threading

20/09 2014

1.1.2

1.1.2.0 https://github.com/duncan3dc/fork-helper

Simple class to fork processes in PHP and allow multi-threading

  Sources   Download

Apache-2.0

The Requires

  • ext-pcntl *
  • ext-shmop *
  • php >=5.4.0

 

process control pcntl fork multi-threading

15/08 2014

1.1.1

1.1.1.0 https://github.com/duncan3dc/fork-helper

Simple class to fork processes in PHP and allow multi-threading

  Sources   Download

Apache-2.0

The Requires

  • ext-pcntl *
  • ext-shmop *
  • php >=5.4.0

 

process control pcntl fork multi-threading

14/08 2014

1.1.0

1.1.0.0 https://github.com/duncan3dc/fork-helper

Simple class to fork processes in PHP and allow multi-threading

  Sources   Download

Apache-2.0

The Requires

  • ext-pcntl *
  • ext-shmop *
  • php >=5.4.0

 

process control pcntl fork multi-threading

08/06 2014

1.0.1

1.0.1.0 https://github.com/duncan3dc/fork-helper

Simple class to fork processes in PHP and allow multi-threading

  Sources   Download

Apache-2.0

The Requires

  • ext-pcntl *
  • php >=5.4.0

 

process control pcntl fork multi-threading