PHPackages                             justmisha/php-multirunner - 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. justmisha/php-multirunner

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

justmisha/php-multirunner
=========================

The package gives the ability to run multiple processes (programs and scripts) in parallel in the background.

0.9.2(5mo ago)711MITPHPPHP &gt;=7.4

Since Sep 18Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/JustMisha/php-multirunner)[ Packagist](https://packagist.org/packages/justmisha/php-multirunner)[ Docs](https://github.com/JustMisha/php-multirunner)[ RSS](/packages/justmisha-php-multirunner/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (8)Used By (0)

[![ru](docs/ru.svg)](docs/README.ru.md) [![PHP versions](docs/php_version.svg)](docs/php_version.svg) [![license MIT](docs/license-MIT.svg)](LICENSE.md) [![coverage](docs/badge-coverage.svg)](docs/badge-coverage.svg)

PHP MultiRunner
===============

[](#php-multirunner)

A package for running multiple processes in parallel in the background and, if necessary, get the results of their work.

It is clear that, first of all, such parallel execution allows you to radically reduce the time of all these processes.

This package:

- has a very simple interface;
- can run any program, script or code that has an interpreter installed on the system;
- works on both Windows and Linux;
- allows you to transfer large amounts of data between processes and your code - tests confirm 1/6 of the value set by the memory\_limit parameter in php.ini with 3 processes, i.e:
    - 21Mb with memory\_limit=128Mb;
    - 42Mb with memory\_limit=128Mb.

Under the hood, it uses proc\_open() to start processes and hides numerous complexities and peculiarities of working with processes in PHP.

It does not require any other packages or extensions to be installed.

Usage
-----

[](#usage)

### Run a single PHP script many times with different parameters and get its output messages.

[](#run-a-single-php-script-many-times-with-different-parameters-and-get-its-output-messages)

```
