Threading for PHP - Share Nothing

https://github.com/krakjoe/pthreads (5.x - 7.x)

https://github.com/krakjoe/pthreads-autoloading-composer

https://github.com/krakjoe/pthreads-polyfill

Примеры

$worker = new Worker(); $task = new class extends Threaded { public static $a; }; $task::$a = new class extends Threaded {}; $worker->start(); $worker->stack($task); $worker->shutdown();
$task = new class extends Threaded { public static $a; }; $task::$a = new class extends Threaded {}; $pool = new Pool(2); $pool->submit($task); $pool->shutdown();

Документация

http://docs.php.net/manual/ru/book.pthreads.php

Статьи

https://habrahabr.ru/post/300952/

PHP IPC — Межпроцессное взаимодействие в PHP