PHP code example of task / box
1. Go to this page and download the library: Download task/box 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/ */
task / box example snippets
use Task\Plugin\BoxPlugin;
$project->inject(function ($container) {
$container['box'] = new BoxPlugin;
});
$project->addTask('box', ['box', function ($box) {
$box->command('build')->pipe($this->getOutput());
});
$project->inject(function ($container) {
$container['box'] = new BoxPlugin('path/to/box');
});