7199ad4dfa1541ea7b1fd4f6992140478099dccc
Taskwarrior PHP lib
use DavidBadura\Taskwarrior\TaskManager;
use DavidBadura\Taskwarrior\Task;
$tm = TaskManager::create();
$task = new Task();
$task->setDescription('program this lib');
$task->setProject('hobby');
$task->setDue(new \DateTime('tomorrow'));
$task->setPriority(Task::PRIORITY_HIGH);
$task->addTag('next');
$task->setRecur('daily');
$tm->save($task);
$tasks = $tm->filter('project:hobby'); // one task
$tm->done($task);
$tasks = $tm->filter('project:hobby'); // empty
Description
Languages
PHP
99.6%
Shell
0.4%