PHPackages                             ryancco/forker - 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. ryancco/forker

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

ryancco/forker
==============

Async processing via process forking

1.0.4(7y ago)14.1k2MITPHPPHP &gt;=5.6.0

Since Sep 16Pushed 7y agoCompare

[ Source](https://github.com/ryancco/php-forked-processing)[ Packagist](https://packagist.org/packages/ryancco/forker)[ RSS](/packages/ryancco-forker/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (5)DependenciesVersions (6)Used By (0)

php-forked-processing (forker)
------------------------------

[](#php-forked-processing-forker)

Asynchronous processing in PHP via process forking

Example
-------

[](#example)

The below is a farcical example of creating and asynchronously processing a job between 5 forked "child" processes for a total run time of 300 seconds as specified. Should a "child" process die, fail, or be completed before the specified time, a new "child" process will be immediately spun up in it's place. Feel free to run this example and watch the terminal output while killing off and letting "child" processes finish their job.

```
