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