PHPackages                             libcast/worker-pool - 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. libcast/worker-pool

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

libcast/worker-pool
===================

Runs tasks in a parallel processing workerpool.

v1.6.2(10y ago)16.6kGPL-3.0+PHPPHP &gt;=5.3.0

Since Oct 5Pushed 10y ago1 watchersCompare

[ Source](https://github.com/KevenLibcast/WorkerPool)[ Packagist](https://packagist.org/packages/libcast/worker-pool)[ Docs](https://github.com/qxsch/WorkerPool)[ RSS](/packages/libcast-worker-pool/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

WorkerPool
==========

[](#workerpool)

[![Build Status](https://camo.githubusercontent.com/55e958a54a4eefdefa5a96013dfaa73f8c5f086694991707a69f591b0cf89d31/68747470733a2f2f7472617669732d63692e6f72672f71787363682f576f726b6572506f6f6c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/qxsch/WorkerPool)[![Project Status](https://camo.githubusercontent.com/cb9223c23d27b0aec6a1b0704933eef23b593356b2aac6ca5411cfb183019884/687474703a2f2f7374696c6c6d61696e7461696e65642e636f6d2f71787363682f576f726b6572506f6f6c2e706e67)](https://camo.githubusercontent.com/cb9223c23d27b0aec6a1b0704933eef23b593356b2aac6ca5411cfb183019884/687474703a2f2f7374696c6c6d61696e7461696e65642e636f6d2f71787363682f576f726b6572506f6f6c2e706e67)

[![Latest Stable Version](https://camo.githubusercontent.com/1493764c34003649881a84105135b08e8c8ac50cbc0c6baeb0b87315de0d4d3b/68747470733a2f2f706f7365722e707567782e6f72672f71787363682f776f726b65722d706f6f6c2f762f737461626c652e706e67)](https://packagist.org/packages/qxsch/worker-pool) [![Total Downloads](https://camo.githubusercontent.com/595a8351ab8c06b910d214072ef689f89117855ef9b286688a8399486288bb9f/68747470733a2f2f706f7365722e707567782e6f72672f71787363682f776f726b65722d706f6f6c2f646f776e6c6f6164732e706e67)](https://packagist.org/packages/qxsch/worker-pool) [![License](https://camo.githubusercontent.com/772d19e53cd572f3bcfd286a02522c11ac1267d7386c208dd960ea4c906615c2/68747470733a2f2f706f7365722e707567782e6f72672f71787363682f776f726b65722d706f6f6c2f6c6963656e73652e706e67)](https://packagist.org/packages/qxsch/worker-pool)

**Parallel Processing WorkerPool for PHP**

*10K Downloads within 4 Months, thank you very much! We're adding features as anyone requires them.*

Examples
--------

[](#examples)

The WorkerPool class provides a very simple interface to pass data to a worker pool and have it processed. You can at any time fetch the results from the workers. Each worker child can return any value that can be [serialized](http://php.net/serialize).

### A simple example

[](#a-simple-example)

```
