PHP code example of droath / robo-docker-compose

1. Go to this page and download the library: Download droath/robo-docker-compose 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/ */

    

droath / robo-docker-compose example snippets




    use \Droath\RoboDockerCompose\Task\loadTasks;

    // Command equivalent: `docker-composer up -d -remove-orphans`
    $this->taskDockerComposeUp()
        ->detachedMode()
        ->removeOrphans()
        ->run();

    // Command equivalent: `docker-composer down`
    $this->taskDockerComposeDown()
        ->run();