PHPackages                             shaggy8871/fork - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. shaggy8871/fork

ActiveLibrary[CLI &amp; Console](/categories/cli)

shaggy8871/fork
===============

Fork makes it simple to fork and run multiple child processes from PHP.

18PHP

Since Feb 3Pushed 11y ago1 watchersCompare

[ Source](https://github.com/shaggy8871/fork)[ Packagist](https://packagist.org/packages/shaggy8871/fork)[ RSS](/packages/shaggy8871-fork/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Fork
====

[](#fork)

Fork makes it simple to fork and run multiple child processes from PHP.

[![Build Status](https://camo.githubusercontent.com/0f8922bac609c9f2f5c5b7be527b9b6d359cf7344b5990925007b5aaeb24055b/68747470733a2f2f7472617669732d63692e6f72672f736861676779383837312f666f726b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/shaggy8871/fork)

### Installation

[](#installation)

Make sure [PCNTL](http://php.net/manual/en/book.pcntl.php) is installed. This library only works via [php-cli](http://php.net/manual/en/features.commandline.php).

In composer.json:

```
"require": {
    "shaggy8871/fork": "dev-master"
}

```

Then run:

```
composer install

```

### Callback mode:

[](#callback-mode)

```
