PHP code example of insite / robo-composer-script

1. Go to this page and download the library: Download insite/robo-composer-script library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

insite / robo-composer-script example snippets


/** @var \RoboComposerScript\ComposerScriptTask $composerTask */
$composerTask = $this->taskComposerScript();
$composerTask->arg('myscript')
  ->scriptOption('option');
$composerTask->run();

/** @var \RoboComposerScript\ComposerExecTask $composerTask */
$composerTask = $this->taskComposerExec();
$composerTask->arg('mycommand');
$composerTask->run();