2017 © Pedro Peláez
 

library todo_by

Add date-specific todos to your code

image

theunraveler/todo_by

Add date-specific todos to your code

  • Tuesday, September 23, 2014
  • by theunraveler
  • Repository
  • 2 Watchers
  • 3 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Todo By

This is a PHP implementation of the do_by Rubygem (https://github.com/andyw8/do_by). It's for adding auto-expiring TODO notes to a project., (*1)

Build Status Coverage Status Latest Stable Version, (*2)

Usage

use TheUnraveler\TodoBy\Todo;

// Globally enable TODO expiration. If TODO expiration is enabled and your code
// runs into an expired TODO, a TodoExpiredException will be thrown.
Todo::enable();

// Globally disable TODO expiration. This means that exceptions will not be
// thrown when expired TODOs are encountered. Good for production.
Todo::disable();

// Creates a new TODO that will expire on the given date.
new Todo('Implement feature X', time()); // Expiration date can be set with a timestamp,
new Todo('Implement feature Y', new \DateTime('now')); // ...a DateTime object,
new Todo('Implement feature Z', '+ 2 weeks'); // ...or anything parsable by new \DateTime.

// Alternatively...
Todo::create('Implement feature AA', '+ 2 weeks');

Tests

To run unit tests, first install dependencies (composer install), then run PHPUnit (bin/phpunit)., (*3)

The Versions

23/09 2014

dev-master

9999999-dev http://github.com/theunraveler/todo-by

Add date-specific todos to your code

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

The Development Requires

by Jake Bell

todo

10/07 2014

1.1.1

1.1.1.0 http://github.com/theunraveler/todo-by

Add date-specific todos to your code

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

The Development Requires

by Jake Bell

todo

03/07 2014

1.1.0

1.1.0.0 http://github.com/theunraveler/todo-by

Add date-specific todos to your code

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

The Development Requires

by Jake Bell

todo

01/07 2014

1.0.0

1.0.0.0 http://github.com/theunraveler/todo-by

Add date-specific todos to your code

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

The Development Requires

by Jake Bell

todo