Go to file
DavidBadura 85132b8189 small changes 2015-02-08 15:40:37 +00:00
src small changes 2015-02-08 15:40:37 +00:00
tests update recurring 2015-02-08 13:29:44 +00:00
.gitignore first draft 2015-02-05 20:41:03 +01:00
.travis.yml first draft 2015-02-05 20:41:03 +01:00
LICENSE Initial commit 2015-02-05 14:24:24 +01:00
README.md update recurring 2015-02-08 13:29:44 +00:00
composer.json add carbon lib for date operations 2015-02-08 11:23:14 +00:00
phpunit.xml.dist first draft 2015-02-05 20:41:03 +01:00

README.md

Taskwarrior PHP lib

Build Status

WOW

use DavidBadura\Taskwarrior\TaskManager;
use DavidBadura\Taskwarrior\Task;
use DavidBadura\Taskwarrior\Recurring;

$tm = TaskManager::create();

$task = new Task();
$task->setDescription('program this lib');
$task->setProject('hobby');
$task->setDue('tomorrow');
$task->setPriority(Task::PRIORITY_HIGH);
$task->addTag('next');
$task->setRecurring(Recurring::DAILY);

$tm->save($task);

$tasks = $tm->filter('project:hobby'); // one task

$tm->done($task);

$tasks = $tm->filter('project:hobby'); // empty