Taskwarrior/README.md

23 lines
544 B
Markdown

# Taskwarrior
[![Build Status](https://travis-ci.org/DavidBadura/Taskwarrior.svg?branch=master)](https://travis-ci.org/DavidBadura/Taskwarrior)
```php
$tm = \DavidBadura\Taskwarrior\TaskManager::create();
$task = new \DavidBadura\Taskwarrior\Task();
$task->setDescription('program this lib');
$task->setProject('hobby');
$task->setDue(new \DateTime('tomorrow'));
$task->addTag('next'); // todo :D
$tm->save($task);
$tasks = $tm->filter('project:hobby'); // one task
$tm->done($task);
$tasks = $tm->filter('project:hobby'); // empty
```