PHPackages                             wilkques/task-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. wilkques/task-pool

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

wilkques/task-pool
==================

task-pool

02PHP

Since Mar 21Pushed 1y ago1 watchersCompare

[ Source](https://github.com/wilkques/php-task-pool)[ Packagist](https://packagist.org/packages/wilkques/task-pool)[ RSS](/packages/wilkques-task-pool/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Task Pool for PHP
=================

[](#task-pool-for-php)

[![TESTS](https://github.com/wilkques/php-task-pool/actions/workflows/github-ci.yml/badge.svg)](https://github.com/wilkques/php-task-pool/actions/workflows/github-ci.yml)[![Latest Stable Version](https://camo.githubusercontent.com/5837563e503a90241e4409cf62f5c756731437af0fce279b7f8275f520b6c36b/68747470733a2f2f706f7365722e707567782e6f72672f77696c6b717565732f7461736b2d706f6f6c2f762f737461626c65)](https://packagist.org/packages/wilkques/task-pool)[![License](https://camo.githubusercontent.com/2e24149768ce4b1b1facd203d9cac61109294b9082d41edc084493fead5a7e6a/68747470733a2f2f706f7365722e707567782e6f72672f77696c6b717565732f7461736b2d706f6f6c2f6c6963656e7365)](https://packagist.org/packages/wilkques/task-pool)

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

[](#installation)

```
composer require wilkques/task-pool

```

How to use
----------

[](#how-to-use)

```
use Wilkques\TaskPool\Contracts\TaskContract;
use Wilkques\TaskPool\Exceptions\ForkRunTimeException;

class TaskOne implements TaskContract
{
    public function handle()
    {
        // ... do something

        return $result;
    }

    public function resolved($result, $index)
    {
        // ... do something

        return $result;
    }

    public function rejected(ForkRunTimeException $forkRunTimeException)
    {
        // ... do something

        return $forkRunTimeException;
    }
}

class TaskTwo implements TaskContract
{
    public function handle()
    {
        // ... do something

        return $result;
    }

    public function resolved($result, $index)
    {
        // ... do something

        return $result;
    }

    public function rejected(ForkRunTimeException $forkRunTimeException)
    {
        // ... do something

        return $forkRunTimeException;
    }
}

class TaskThree implements TaskContract
{
    public function handle()
    {
        // ... do something

        return $result;
    }

    public function resolved($result, $index)
    {
        // ... do something

        return $result;
    }

    public function rejected(ForkRunTimeException $forkRunTimeException)
    {
        // ... do something

        return $forkRunTimeException;
    }
}

$taskOne = new TaskOne;

$taskTwo = new TaskTwo;

$taskThree = new TaskThree;

$taskPool = new TaskPool;

$taskPool->task($taskOne)->task($taskTwo)->task($taskThree);

// or

$taskPool->tasks(
    array(
        $taskOne,
        $taskTwo,
        $taskThree,
    )
);

// run handle
$taskPool->handle();

// if has return
$taskPool->results();
```

Options
-------

[](#options)

1. `memory` memory size default 1024
2. `timeout` set timeout microseconds default 100000

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity16

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/906e907ec7e3dbe49f32aebd0f36488176d3736a65d38675753ba9a6a21017b6?d=identicon)[wilkques](/maintainers/wilkques)

---

Top Contributors

[![wilkques](https://avatars.githubusercontent.com/u/51186879?v=4)](https://github.com/wilkques "wilkques (20 commits)")

### Embed Badge

![Health badge](/badges/wilkques-task-pool/health.svg)

```
[![Health](https://phpackages.com/badges/wilkques-task-pool/health.svg)](https://phpackages.com/packages/wilkques-task-pool)
```

###  Alternatives

[thathoff/kirby-git-content

Plugin to track changes to content in a git repository.

15447.9k](/packages/thathoff-kirby-git-content)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
