25 lines
592 B
Markdown
25 lines
592 B
Markdown
# Taskwarrior PHP lib
|
|
|
|
[![Build Status](https://travis-ci.org/DavidBadura/Taskwarrior.svg?branch=master)](https://travis-ci.org/DavidBadura/Taskwarrior)
|
|
|
|
![WOW](http://i.imgur.com/mvSQh0M.gif)
|
|
|
|
```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
|
|
```
|