PHPackages                             oasis/multitasking - 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. oasis/multitasking

ActiveLibrary

oasis/multitasking
==================

v1.3.5(2y ago)11.1k[3 issues](https://github.com/oasmobile/php-multitasking/issues)MITPHPPHP &gt;=5.6.1

Since Aug 31Pushed 2y ago7 watchersCompare

[ Source](https://github.com/oasmobile/php-multitasking)[ Packagist](https://packagist.org/packages/oasis/multitasking)[ RSS](/packages/oasis-multitasking/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (3)Versions (15)Used By (0)

php-multitasking
================

[](#php-multitasking)

Multitasking support for PHP, using pcntl library to fork children processes

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

[](#installation)

oasis/multitasking is an open-source component available at `packagist.org`. To require the package, try the following in your project directory:

```
composer require oasis/multitasking
```

Background Worker Manager
-------------------------

[](#background-worker-manager)

If you ever want to run something in the background(i.e. a `callable` that is often referred to as *worker*), you should have a look at `BackgroundWorkerManager` class. This class provides the following features:

- Run multiple workers in the background (forked process)
- An ordered worker queue which limits the concurrent running worker to a preset number
- Wait functionality for the parent process

Example:

```
