ComposerResult
Outcome of a composer-require run.
ComposerResult::__construct()
public function __construct(bool $success, array $installed, ?string $failedPackage, string $output):Parameters
| Name | Type | Description |
|---|---|---|
| $success | bool | True only when EVERY requested package installed. |
| $installed | list<string> | Package specs that DID install (also populated on failure). |
| $failedPackage | (string | null) | The package spec whose install failed (null on success). |
| $output | string | Combined stdout+stderr of the run(s). |