Skip to content
docsv0.13.1

ComposerResult

Outcome of a composer-require run.

ComposerResult::__construct()

public function __construct(bool $success, array $installed, ?string $failedPackage, string $output):

Parameters

Parameters of __construct()
NameTypeDescription
$successboolTrue only when EVERY requested package installed.
$installedlist<string>Package specs that DID install (also populated on failure).
$failedPackage(string | null)The package spec whose install failed (null on success).
$outputstringCombined stdout+stderr of the run(s).