Note: This repository is a part of Kraken Framework, but can be used freely as standalone library. If you are interested in more asynchronous components for PHP, check out the rest of Kraken repository or see our asynchronous application skeleton example.
Runtime is component that provides container-based abstraction for Threads and Processes and means of managing and supervising children containers from its ancestor level.
Runtime features:
- Container-based abstraction for Threads and Processes,
- Separation between standard and emergent flow of business logic inside single container,
- Command-based controls to pass orders between containers,
- Built-in Process local and remote managers,
- Built-in Thread local and remote managers,
- Built-in Runtime managers abstracting management of processes and threads,
- Supervision mechanisms with separation of local and remote errors,
- Supervision problem solvers,
- Kraken Framework compatibility,
- ...and more.
See more examples in official documentation.
- PHP-5.6 or PHP-7.0+,
- UNIX for multi-processing,
- PHP Pthreads extension enabled for multi-threading,
composer require kraken-php/runtime
Tests are provided within our write-only Framework repository.
Documentation for this module can be found in the official documentation.
This library is read-only subtree split of Kraken Framework. To make contributions, please go to Framework repository.
This library licensed under the MIT license, see more information in Kraken Framework license section.