This packages contains Robo tasks that allows you to run
custom Composer scripts
and composer exec
.
You can use it like this:
/** @var \RoboComposerScript\ComposerScriptTask $composerTask */
$composerTask = $this->taskComposerScript();
$composerTask->arg('myscript')
->scriptOption('option');
$composerTask->run();
This will run:
composer run-script myscript --ansi -- --option
You can use it like this:
/** @var \RoboComposerScript\ComposerExecTask $composerTask */
$composerTask = $this->taskComposerExec();
$composerTask->arg('mycommand');
$composerTask->run();
This will run:
composer exec mycommand --ansi