Skip to content
A lightest process manager
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
src
.gitignore
LICENSE
README.md
composer.json

README.md

ForkMan

A lightest process manager(inspired by SimpleFork)

Install

$ composer require upfor/forkman

Example

<?php

use Upfor\ForkMan\ForkMan;

require 'vendor/autoload.php';

$fm = new ForkMan(2);
$fm->master(function (ForkMan $fm) {
    $fm->submit([1, 1000]);
    $fm->submit([1001, 2000]);

    $fm->wait(3000);
})->slave(function ($params, ForkMan $fm) {
    $fm->log($params);
});

License

ForkMan is under the MIT license.

You can’t perform that action at this time.