PHPackages                             sinacms/multiprocess - 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. sinacms/multiprocess

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

sinacms/multiprocess
====================

a tool for PHP multi process asynchronous tasks manage

1.1.4(7y ago)181153Apache-2.0PHP

Since May 23Pushed 7y ago1 watchersCompare

[ Source](https://github.com/sinacms/MultiProcess)[ Packagist](https://packagist.org/packages/sinacms/multiprocess)[ RSS](/packages/sinacms-multiprocess/feed)WikiDiscussions master Synced yesterday

READMEChangelog (7)Dependencies (1)Versions (8)Used By (0)

PHP Mutilprocess
================

[](#php-mutilprocess)

```
This is high performance PHP Mutilprocessing Task Manager written in PHP, compatible with PHP-FPM and CLI.
这是一个用PHP编写的高性能PHP多进程异步任务管理器，与PHP FPM和CLI兼容。

```

Contents
--------

[](#contents)

- [Feature](#feature)
- [Installation](#installation)
- [Usage](#usage)
    - [Async-Multi-Tasks](#async-multi-tasks)
- [Documentation](#documentation)
    - [Async](#Async)

Feature
-------

[](#feature)

- By using this tool, PHP scripts can be invoked asynchronously based on multi processes, and finally wait for each process to return results, saving lots of time.
- graceful and efficient
- can get callable function return value
- You can specify the PHP path for asynchronous execution scripts by specifying the phpBin parameter.
- Exception Handling

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

[](#installation)

You can use composer to install this library from the command line.

```
composer require sinacms/multiprocess
```

Usage
-----

[](#usage)

### distribute tasks and async execute

[](#distribute-tasks-and-async-execute)

```
