phpBinary(), $composer, 'require']; } $command = array_merge( $command ?? ['composer', 'require'], $packages, ); return ! (new Process($command, $this->laravel->basePath(), ['COMPOSER_MEMORY_LIMIT' => '-1'])) ->setTimeout(null) ->run(function ($type, $output) { $this->output->write($output); }); } /** * Get the path to the appropriate PHP binary. * * @return string */ protected function phpBinary() { return php_binary(); } }