PHPackages                             mslwk/module-reactphp-playground - 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. mslwk/module-reactphp-playground

ActiveMagento2-module

mslwk/module-reactphp-playground
================================

ReactPHP playground module for Magento 2

1.0.0(7y ago)128MITPHPPHP ^7.1.0

Since Jul 6Pushed 7y ago2 watchersCompare

[ Source](https://github.com/maciejslawik/reactphp-playground-magento2)[ Packagist](https://packagist.org/packages/mslwk/module-reactphp-playground)[ RSS](/packages/mslwk-module-reactphp-playground/feed)WikiDiscussions master Synced 4d ago

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

[![Build Status](https://camo.githubusercontent.com/f86f805b117545a1f120229bf97c6a93eb710112769fc2b13149bac2edca5019/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d616369656a736c6177696b2f72656163747068702d706c617967726f756e642d6d6167656e746f322f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/maciejslawik/reactphp-playground-magento2/build-status/master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/4ccdae13db57298c946e43a72805eef395414e0a528f3dad5e8bc2f01a948ddd/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d616369656a736c6177696b2f72656163747068702d706c617967726f756e642d6d6167656e746f322f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/maciejslawik/reactphp-playground-magento2/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/ba2f5c331c7a251a954eb5a6bafe02a00b4aa3aae9c3b272cf1a3d218627a27e/68747470733a2f2f706f7365722e707567782e6f72672f6d736c776b2f6d6f64756c652d72656163747068702d706c617967726f756e642f762f737461626c65)](https://packagist.org/packages/mslwk/module-reactphp-playground)[![License](https://camo.githubusercontent.com/8f20b308cfa84cf55bc0879823b03e0af4baced250c95faf686c13b5791659a6/68747470733a2f2f706f7365722e707567782e6f72672f6d736c776b2f6d6f64756c652d72656163747068702d706c617967726f756e642f6c6963656e7365)](https://packagist.org/packages/mslwk/module-reactphp-playground)[![Total Downloads](https://camo.githubusercontent.com/cd4bc82d51ba63a85cb59a27d6f85ab25d935e2521a56a5235959890f3480628/68747470733a2f2f706f7365722e707567782e6f72672f6d736c776b2f6d6f64756c652d72656163747068702d706c617967726f756e642f646f776e6c6f616473)](https://packagist.org/packages/mslwk/module-reactphp-playground)

Magento 2 ReactPHP Playground
=============================

[](#magento-2-reactphp-playground)

Magento 2 module which showcases how to run resource-heavy processes asynchronously using multiple threads with ReactPHP ChildProcess and HttpClient libraries.

Prerequisites
-------------

[](#prerequisites)

- Magento 2.2 or higher
- PHP 7.1

Installing
----------

[](#installing)

You can install the module by downloading a .zip file and unpacking it inside `app/code/MSlwk/ReactPhpPlayground` directory inside your Magento or via Composer (recommended).

To install the module via Composer simply run

```
composer require mslwk/module-reactphp-playground

```

Than enable the module by running these command in the root of your Magento installation

```
bin/magento module:enable MSlwk_ReactPhpPlayground
bin/magento setup:upgrade

```

Usage
-----

[](#usage)

#### Non-Magento scripts

[](#non-magento-scripts)

The module contains PHP CLI scripts which don't require Magento. They present the potential differences between the same calculations run on 1, 2 and 4 threads.

- To run HttpClient example start the `Standalone/bin/http` script
- To run ChildProcess example start the `Standalone/bin/childprocess` script

#### Magento commands

[](#magento-commands)

The module contains 2 commands available via `bin/magento`. You can choose the number of threads to use.

- To run HttpClient example use

```
bin/magento mslwk:webapi-reporting-start

```

- To run ChildProcess example use

```
bin/magento mslwk:cli-reporting-start

```

Authors
-------

[](#authors)

- **Maciej Sławik** -

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details

Screenshots
-----------

[](#screenshots)

[![Alt text](docs/standalone_cli.png?raw=true "Standalone script using ChildProcess run on 1, 2 and 4 threads")](docs/standalone_cli.png?raw=true)

[![Alt text](docs/magento_cli_1.png?raw=true "Magento script using ChildProcess run on 1 thread")](docs/magento_cli_1.png?raw=true)

[![Alt text](docs/magento_cli_3.png?raw=true "Magento script using ChildProcess run on 3 threads")](docs/magento_cli_3.png?raw=true)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

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

Unknown

Total

1

Last Release

2870d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4dd1db0bcc71b12f314bdce40703dc572ce6d093a2ff56845f19ddd816283436?d=identicon)[mslwk](/maintainers/mslwk)

---

Top Contributors

[![maciejslawik](https://avatars.githubusercontent.com/u/11910648?v=4)](https://github.com/maciejslawik "maciejslawik (10 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mslwk-module-reactphp-playground/health.svg)

```
[![Health](https://phpackages.com/badges/mslwk-module-reactphp-playground/health.svg)](https://phpackages.com/packages/mslwk-module-reactphp-playground)
```

###  Alternatives

[smile/elasticsuite

Magento 2 merchandising and search engine built on ElasticSearch

8044.5M33](/packages/smile-elasticsuite)[fastly/magento2

Fastly CDN Module for Magento 2.4.x

1564.2M1](/packages/fastly-magento2)[lizardmedia/module-varnish-warmer

Varnish Cache Warmer Magento2 module by Lizard Media

6276.8k](/packages/lizardmedia-module-varnish-warmer)[dotdigital/dotdigital-magento2-extension

Dotdigital for Magento 2

50374.2k18](/packages/dotdigital-dotdigital-magento2-extension)[swissup/module-search-mysql-legacy

Legacy mysql search for magento 2.4

10483.0k](/packages/swissup-module-search-mysql-legacy)[fredden/magento2-module-javascript-error-reporting

A Magento 2 module which captures JavaScript errors for later review by website administrators

3138.1k](/packages/fredden-magento2-module-javascript-error-reporting)

PHPackages © 2026

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