2015-04-22 11:39:33 +00:00
2015-04-22 11:32:43 +00:00
2015-04-22 11:39:33 +00:00
2015-02-05 20:41:03 +01:00
2015-04-22 10:59:26 +00:00
2015-02-05 14:24:24 +01:00
2015-02-05 20:41:03 +01:00
2015-04-06 22:03:22 +00:00

Taskwarrior PHP lib

Build Status

WOW

Install

composer require 'davidbadura/taskwarrior'

Usage

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

API

todo...

QueryBuilder

$tasks = $taskManager->createQueryBuilder()
    ->whereProject('hobby')
    ->sortBy(QueryBuilder::SORT_ENTRY)
    ->getResult()
Description
No description provided
Readme 7 MiB
Languages
PHP 99.6%
Shell 0.4%