Download the PHP package gravitask/task without Composer

On this page you can find all versions of the php package gravitask/task. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package task

gravitask/task

Build Status

A seriously powerful library for working with TODO list items and tasks.

Features

Example


Installation

The recommended way to install this library is via Composer:

Requirements


TaskItem

This class is the "task object" and holds all of the information about the task, such as its creation date, priority, description, etc.

Constants

Name Definition
STATUS_ACTIVE The status of the task is active - i.e. in progress, not completed.
STATUS_COMPLETED The status of the task is completed.

Methods

setTask($task)

Set the name/description of the task to be completed.

Example

getTask()

Retrieve the name/description of the task.

Example

setContexts(array $contexts)

Set the task's contexts to the items provided in the $contexts array.

Example

addContext($context)

Append a single context item to the pre-existing array of contexts.

Example

getContexts()

Retrieve an array of the task's contexts.

Example

setProjects(array $projects)

Set the task's projects to the items provided in the $projects array.

Example

addProject($project)

Append a single project item to the pre-existing array of projects.

Example

getProjects()

Retrieve an array of the task's projects.

Example

setCreationDate(\DateTime $date)

Set the task's optional creation date.

The $date argument is a DateTime object set to the required date and time.

Example

getCreationDate()

Retrieve the optional creation date value for the task.

Example

setCompletionDate(\DateTime $date)

Set the date of when the task was completed.

The $date argument is a DateTime object set to the required date and time.


getCompletionDate()

Retrieve the date that the task was completed.

Example

setPriority($priority)

Set the task's priority to the provided uppercase single letter of the alphabet. A signifies the highest priority, whilst Z represents the lowest.

Example

getPriority()

Retrieve the task's priority value represented by a single, uppercase letter of the alphabet.

Example

setStatus($status)

Set the status of the task to a different value.

Requirements:

Example

getStatus()

Retrieve the current status of the task. By default this value will be TaskItem::STATUS_ACTIVE.

Example

Formatters

Required Methods

All formatters MUST implement the Gravitask\Task\Formatter\FormatterInterface.

format(TaskItem $taskItem)

Format the provided TaskItem using the preferred formatter class, e.g. TodoTxtFormatter.

Example

Parsers

Required Methods

All parsers MUST implement the Gravitask\Task\Parser\ParserInterface.

parse($input)

Parse the provided $input variable and return a Gravitask\Task\TaskItem object, or FALSE on failure to parse.

Example

All versions of task with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package gravitask/task contains the following files

Loading the files please wait ....