Skip to content

kostajh/LibTask

Repository files navigation

LibTask - PHP Library for Taskwarrior

LibTask is a PHP library for interacting with Taskwarrior 2.x. You can use LibTask to add, modify, delete, and view tasks in a Taskwarrior database.

Build Status

Usage

<?php

use LibTask\Task\Task;
use LibTask\Taskwarrior;

$taskwarrior = new Taskwarrior();

// Add a task
$task = new Task('Grind coffee beans');
$task
  ->setDue("today")
  ->setStatus("pending")
  ->setProject('morning')
  ->setTags(array('coffee', 'life'))
  ->setPriority('H');
$response = $taskwarrior->save($task)->getResponse();

// Load tasks
$tasks = $taskwarrior->loadTasks('overdue', array('status' => 'pending'));

References

Taskwarrior JSON Format

Author

Kosta Harlan

About

PHP library for interacting with Taskwarrior 2.x

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages