Symfony Process component executes commands in sub-processes.
Symfony Process is one of the Symfony components that is bundled with Symfony but can also be used separately.
It allows to run sub-processes, view real-time process output, run them asynchronously, kill them with nice API.
Also it can be used to run PHP code in isolation.
Documentation:
http://symfony.com/doc/current/components/process.html
Install using Composer:
composer require symfony/process
Homepage:
https://github.com/symfony/process