public function getComposerHomeDir()
{
$composerConfig = shell_exec('composer config --list --global | grep home');
if (is_null($composerConfig)) {
throw new MissingComposerHomeException('Composer home directory is not found. Do you have it installed?');
}
return trim(str_replace('[home] ', '', $composerConfig));
}