PHP code example of ulrack / task
1. Go to this page and download the library: Download ulrack/task 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/ */
ulrack / task example snippets
use Ulrack\Task\Component\TaskList;
$taskList = new TaskList();
use Ulrack\Task\Common\TaskInterface;
/** @var TaskInterface $task */
$taskList->addTask($task, 'My task');
foreach($taskList as $name => $percentage)
{
echo sprintf(
'Currently executing task: %s (%d%%)).',
$name,
$percentage
);
}