PHPackages                             thelevti/phpfork - 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. [Queues &amp; Workers](/categories/queues)
4. /
5. thelevti/phpfork

ActiveLibrary[Queues &amp; Workers](/categories/queues)

thelevti/phpfork
================

PHP process forking library.

5.0.0(6y ago)75.0k2[1 issues](https://github.com/TheLevti/phpfork/issues)MITPHPPHP ^7.2.0CI failing

Since May 31Pushed 6y ago1 watchersCompare

[ Source](https://github.com/TheLevti/phpfork)[ Packagist](https://packagist.org/packages/thelevti/phpfork)[ Docs](https://github.com/TheLevti/phpfork)[ RSS](/packages/thelevti-phpfork/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (8)Dependencies (7)Versions (14)Used By (0)

thelevti/phpfork
================

[](#thelevtiphpfork)

**[Requirements](#requirements)** | **[Installation](#installation)** | **[Usage](#usage)**

[![Build Status](https://camo.githubusercontent.com/9a31f98106f9bf7a6f14fb6e4f71b703d0ede5371d8c1cc5ad1f023355730c0e/68747470733a2f2f7472617669732d63692e636f6d2f5468654c657674692f706870666f726b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/TheLevti/phpfork)

A simple library to make forking a processes as easy as possible.

`thelevti/phpfork` follows semantic versioning. Read more on [semver.org](https://semver.org).

---

Requirements
------------

[](#requirements)

- PHP 7.2 or above
- [php-pcntl](https://php.net/manual/en/book.pcntl.php) to allow this library forking processes.
- [php-posix](https://php.net/manual/en/book.posix.php) to allow this library getting process information.
- [php-shmop](https://php.net/manual/en/book.shmop.php) to allow this library doing interprocess communication.

---

Installation
------------

[](#installation)

### Composer

[](#composer)

To use this library with [composer](https://getcomposer.org), run the following terminal command inside your repository's root folder.

```
composer require "thelevti/phpfork"
```

Usage
-----

[](#usage)

This library uses the namespace `TheLevti\phpfork`.

### Example: Basic process forking

[](#example-basic-process-forking)

```
