9ef7c833f0
modified: README.md modified: src/Task.php modified: tests/TaskManagerTest.php |
||
---|---|---|
src | ||
tests | ||
.gitignore | ||
.travis.yml | ||
LICENSE | ||
README.md | ||
composer.json | ||
phpunit.xml.dist |
README.md
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');
$tm->save($task);
$tasks = $tm->filter('project:hobby'); // one task
$tm->done($task);
$tasks = $tm->filter('project:hobby'); // empty