. */ use Symfony\Component\Process\Process; class External { public static function execute($command) { $process = Process::fromShellCommandline($command); $process->run(); if (! $process->isSuccessful()) { Log::error('"'.$command.'" failed with "'.$process->getErrorOutput().'"'); } } }