PHP code example of thereference / robo-lando

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

    

thereference / robo-lando example snippets


class RoboFile extends \Robo\Tasks
{
    // ~1 for Robo >=1.0.0-RC1
    use \TheReference\Robo\Task\Lando\loadTasks;

    //...
}

$this->taskLandoConfig()
    ->run();

$this->taskLandoDestroy()
  ->application("myapp")
  ->run();

$this->taskLandoInfo()
  ->application("myapp")
  ->deep()
  ->run();

$this->taskLandoInit()
  ->recipe("drupal8")
  ->webroot("./")
  ->run();

$this->taskLandoList()
  ->run();

$this->taskLandoLogs()
  ->recipe("drupal8")
  ->webroot("./")
  ->run();

$this->taskLandoPoweroff()
  ->run();

$this->taskLandoRebuild()
  ->services(array("database", "appserver")
  ->run();

$this->taskLandoRestart()
  ->application("myapp")
  ->run();

$this->taskLandoShare()
  ->url("http://localhost:32785")
  ->run();

$this->taskLandoSsh()
  ->user("johndoe")
  ->command("ls -l /")
  ->run();

$this->taskLandoStart()
  ->application("myapp")
  ->run();

$this->taskLandoStop()
  ->application("myapp")
  ->run();

$this->taskLandoVersion()
  ->run();