PHPackages                             phasty/process - 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. phasty/process

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

phasty/process
==============

PHP for asynchronous task execution

0.2.3(10y ago)07.5k1[1 PRs](https://github.com/phasty/Process/pulls)MITPHP

Since Sep 4Pushed 8y ago1 watchersCompare

[ Source](https://github.com/phasty/Process)[ Packagist](https://packagist.org/packages/phasty/process)[ RSS](/packages/phasty-process/feed)WikiDiscussions master Synced 1mo ago

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

Process
=======

[](#process)

Allows you make any job in another php-process with ability to get feedback from child process during all execution time:

```
// Child process code:
use Phasty\process\Child\CallableClass;
class ChildProcess extends CallableClass {
    public $property = "A";
    public function doAsyncJob($arg1, $arg2) {
        $this->trigger("doneJob", (object)[ "result" => $arg1 . $arg2  . $this->property ]);
    }
}

```

And parent process code:

```
use Phasty\Stream\StreamSet;
use Phasty\Process\Child\Controller;

$process = new Controller(ChildProcess::getClass());
/*
  or you can use instance of class ChildProcess with predefined state like this:
  $childJob = new ChildProcess;
  $childJob->property = "B";
  $process = new Controller($childJob);
 */

$process->on("start", function () {
    echo "Child process started\n";
});

$process->on("stop", function () {
    echo "Child process stopped\n";
});

$process->on("doneJob", function ($event) {
    echo "Got result from child: " . $event->getData()->result . "\n";
});

$process->doAsyncJob("foo", "bar");

StreamSet::instance()->listen();
echo "stopped\n";

```

After execution you should see:

```
Child process started
Got result from child: foobarA
Child process stopped
stopped

```

You can receive event "error" in parent process on child object in case of catchable error occured or signal (including SIGTERM, SIGFAULT etc)

Coming soon:
------------

[](#coming-soon)

1\. Killing process with $process-&gt;kill();

2\. Getting result code

3. Bi-directional link (sending commands to child)

4\. Getting stop reason (normal, signals like segmentation fault and so on)

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity57

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

Every ~138 days

Total

5

Last Release

3723d ago

### Community

Maintainers

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

---

Top Contributors

[![dedestrt](https://avatars.githubusercontent.com/u/2020598?v=4)](https://github.com/dedestrt "dedestrt (21 commits)")

---

Tags

phpprocesstask

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/phasty-process/health.svg)

```
[![Health](https://phpackages.com/badges/phasty-process/health.svg)](https://phpackages.com/packages/phasty-process)
```

###  Alternatives

[jolicode/castor

A lightweight and modern task runner. Automate everything. In PHP.

53541.0k3](/packages/jolicode-castor)[microsoft/azure-storage-queue

This project provides a set of PHP client libraries that make it easy to access Microsoft Azure Storage Queue APIs.

142.6M17](/packages/microsoft-azure-storage-queue)[symplely/coroutine

Cooperative multitasking using generators. The basics of coroutines, async and await!

621.6k2](/packages/symplely-coroutine)[baklysystems/laravel-chat-messenger

Laravel chat package

121.8k](/packages/baklysystems-laravel-chat-messenger)

PHPackages © 2026

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