2017 © Pedro Peláez
 

magento2-module module-reactphp-playground

ReactPHP playground module for Magento 2

image

mslwk/module-reactphp-playground

ReactPHP playground module for Magento 2

  • Tuesday, July 17, 2018
  • by mslwk
  • Repository
  • 2 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Build Status Scrutinizer Code Quality Latest Stable Version License Total Downloads, (*1)

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., (*2)

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)., (*3)

To install the module via Composer simply run, (*4)

composer require mslwk/module-reactphp-playground

Than enable the module by running these command in the root of your Magento installation, (*5)

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

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., (*6)

  • 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., (*7)

  • To run HttpClient example use
bin/magento mslwk:webapi-reporting-start <<number_of_threads>>
  • To run ChildProcess example use
bin/magento mslwk:cli-reporting-start <<number_of_threads>>

Authors

  • Maciej Sławik - https://github.com/maciejslawik

License

This project is licensed under the MIT License - see the LICENSE file for details, (*8)

Screenshots

Alt text, (*9)

Alt text, (*10)

Alt text, (*11)

The Versions

17/07 2018

dev-master

9999999-dev

ReactPHP playground module for Magento 2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maciej Sławik

06/07 2018

1.0.0

1.0.0.0

ReactPHP playground module for Magento 2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maciej Sławik