Blackshawk / spork

Experimental library for forking PHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status

Spork: PHP on a Fork

<?php

use Spork\Deferred\DeferredFactory;
use Spork\ProcessManager;

$manager = new ProcessManager(new DeferredFactory());
$manager->fork(function() {
    // do something in another process!
})->then(function($output, $status) {
    // do something in the parent process when it's done!
});

About

Experimental library for forking PHP

License:MIT License


Languages

Language:PHP 100.0%