Использовать (proc_open)
https://symfony.com/doc/current/components/process.html
https://github.com/symfony/process/blob/master/Process.php
Пример
https://github.com/liquetsoft/fias-symfony/blob/master/Pipeline/Task/SymfonyProcessSwitchTask.php
Когда написано:
[
2020-03-25 23:55:52]
-
[
2020-03-25 23:55:52]
232