Download the PHP package mslwk/module-reactphp-playground without Composer
On this page you can find all versions of the php package mslwk/module-reactphp-playground. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mslwk/module-reactphp-playground
More information about mslwk/module-reactphp-playground
Files in mslwk/module-reactphp-playground
Package module-reactphp-playground
Short Description ReactPHP playground module for Magento 2
License MIT
Informations about the package module-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
- Magento 2.2 or higher
- PHP 7.1
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
Than enable the module by running these command in the root of your Magento installation
Usage
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
The module contains 2 commands available via bin/magento
. You can choose the number of threads to use.
-
To run HttpClient example use
- To run ChildProcess example use
Authors
- Maciej Sławik - https://github.com/maciejslawik
License
This project is licensed under the MIT License - see the LICENSE file for details
Screenshots
All versions of module-reactphp-playground with dependencies
magento/framework Version >=101.0.0
magento/module-store Version >=100.0.0
mslwk/php-typesafe-array Version ^1.0
react/http-client Version ^0.5.9
react/child-process Version ^0.5.2