PHP code example of brad-jones / robo-tasks

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

    

brad-jones / robo-tasks example snippets




/*
 * NOTE: I wouldn't normally install robo globally. I use composer to install
 * it for me. However in some cases people still run a global version of robo.
 * Thus we eDb()
			->host('127.0.0.1')
			->user('root')
			->pass('')
			->name('myapp_test')
		->run();
	}
}



 RoboFile extends Robo\Tasks
{
	// import additional task
	use Brads\Task\CreateDb;

	public function someCommand()
	{
		$this->taskCreateDb()
			->host('127.0.0.1')
			->user('root')
			->pass('')
			->name('myapp_test')
		->run();
	}
}
RoboFile.php