PHPackages                             mak/phing-foreach-parallel-task - 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. [CLI &amp; Console](/categories/cli)
4. /
5. mak/phing-foreach-parallel-task

AbandonedLibrary[CLI &amp; Console](/categories/cli)

mak/phing-foreach-parallel-task
===============================

phing task to run sub-tasks in a foreach-loop in separate, parallel processes

v1.0.0(11y ago)213.5k2[1 issues](https://github.com/mkrauser/phing-foreach-parallel-task/issues)[1 PRs](https://github.com/mkrauser/phing-foreach-parallel-task/pulls)MITPHPPHP &gt;=5.3

Since Oct 27Pushed 2y ago2 watchersCompare

[ Source](https://github.com/mkrauser/phing-foreach-parallel-task)[ Packagist](https://packagist.org/packages/mak/phing-foreach-parallel-task)[ Docs](https://github.com/mkrauser/phing-foreach-parallel-task)[ RSS](/packages/mak-phing-foreach-parallel-task/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (2)Used By (0)

ForeachParallel-Task for Phing
==============================

[](#foreachparallel-task-for-phing)

[![project status](https://camo.githubusercontent.com/8bad87488a111a249b0effb4ab2873e8f2a471830a352bddbfe7da5bb7009a3c/687474703a2f2f7374696c6c6d61696e7461696e65642e636f6d2f6d6b7261757365722f7068696e672d666f72656163682d706172616c6c656c2d7461736b2e706e67)](https://camo.githubusercontent.com/8bad87488a111a249b0effb4ab2873e8f2a471830a352bddbfe7da5bb7009a3c/687474703a2f2f7374696c6c6d61696e7461696e65642e636f6d2f6d6b7261757365722f7068696e672d666f72656163682d706172616c6c656c2d7461736b2e706e67)

Maintainer Contact
------------------

[](#maintainer-contact)

Matthias Krauser mail: twitter: [@mat\_krauser](https://twitter.com/mat_krauser)

Changelog
---------

[](#changelog)

### 1.0.0 (2014-10-27)

[](#100-2014-10-27)

- initial release

Documentation
-------------

[](#documentation)

The foreach-parallel-task for phing behaves exactly like the normal foreach-task. From the documentation of the [foreach-task](http://www.phing.info/docs/guide/trunk/apbs16.html):

*The foreach task iterates over a list, a list of filesets, or both. If both, list and filesets, are specified, the list will be evaluated first. Nested filesets are evaluated in the order they appear in the task.*

The only difference is, that the iterations are not executed sequentially but parallel. It like a foreach-version of phing's [ParallelTask](http://www.phing.info/docs/guide/trunk/apcs43.html).

This only works on \*nix machines with pcntl-extension installed. If the requirements are not fullfilled, the foreach-parallel-task will behave like a regular foreach-task.

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

[](#installation)

The suggested installation method is via [composer](https://getcomposer.org/):

```
php composer.phar require "doctrine/instantiator:~1.0.3"
```

Usage
-----

[](#usage)

- Load the task in your phing build-file

```

```

- Call the task: The syntax is exactly the same as the original task. The only difference is the optional `threadCount`-Attribute, to specify the maximum number of threads / processes to use. If not specified, the library will try to guess the best number.

```

```

Credits
-------

[](#credits)

This library task was heavily inspired by ParallelTask from Michiel Rook (), which is part of the Phing-Core.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4266d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b9aefabc109b7f6310a081a25fd4152202bd76df5e01639127fe38a07be5d01f?d=identicon)[mkrauser](/maintainers/mkrauser)

---

Top Contributors

[![mkrauser](https://avatars.githubusercontent.com/u/494845?v=4)](https://github.com/mkrauser "mkrauser (5 commits)")

### Embed Badge

![Health badge](/badges/mak-phing-foreach-parallel-task/health.svg)

```
[![Health](https://phpackages.com/badges/mak-phing-foreach-parallel-task/health.svg)](https://phpackages.com/packages/mak-phing-foreach-parallel-task)
```

###  Alternatives

[illuminate/console

The Illuminate Console package.

13046.0M6.4k](/packages/illuminate-console)[styleci/cli

The CLI tool for StyleCI

71470.5k9](/packages/styleci-cli)[winbox/args

Windows command-line formatter

20720.9k21](/packages/winbox-args)

PHPackages © 2026

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