2017 © Pedro Peláez
 

library fork-helper

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

image

duncan3dc/fork-helper

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

  • Thursday, December 21, 2017
  • by duncan3dc
  • Repository
  • 7 Watchers
  • 47 Stars
  • 143,582 Installations
  • PHP
  • 2 Dependents
  • 2 Suggesters
  • 18 Forks
  • 1 Open issues
  • 15 Versions
  • 5 % Grown

The README.md

fork-helper

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

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

release build coverage, (*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 https://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)

duncan3dc/fork-helper for enterprise

Available as part of the Tidelift Subscription, (*8)

The maintainers of duncan3dc/fork-helper and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. Learn more., (*9)

The Versions

21/12 2017

dev-master

9999999-dev 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

11/07 2017

2.2.0

2.2.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

11/07 2017

dev-shared-memory-cleanup-again

dev-shared-memory-cleanup-again 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

05/03 2017

2.1.0

2.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

  • php ^7.0

 

The Development Requires

process control pcntl fork multi-threading

05/03 2017

dev-shared-memory-cleanup

dev-shared-memory-cleanup 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

01/03 2017

1.1.x-dev

1.1.9999999.9999999-dev 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

01/03 2017

1.1.6

1.1.6.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

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