Download the PHP package juzim/todo-txt-parser without Composer
On this page you can find all versions of the php package juzim/todo-txt-parser. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download juzim/todo-txt-parser
More information about juzim/todo-txt-parser
Files in juzim/todo-txt-parser
Download juzim/todo-txt-parser
More information about juzim/todo-txt-parser
Files in juzim/todo-txt-parser
Vendor juzim
Package todo-txt-parser
Short Description A todo.txt parsing and validation library for PHP
License MIT
Homepage https://github.com/juzim/todo-txt-parser
Package todo-txt-parser
Short Description A todo.txt parsing and validation library for PHP
License MIT
Homepage https://github.com/juzim/todo-txt-parser
Please rate this library. Is it a good library?
Informations about the package todo-txt-parser
Todo.Txt Parser
A todo.txt parsing and validation library for PHP
Installation
$ composer require "juzim/todo-txt-parser:~1.0"
Usage
This will return a TodoTxtTask object that includes all values (see todo.txt rules):
The following errors get collected:
If at least one of those errors occurred, a TodoTxtValidationException
is thrown at the end which includes all collected errors in readable format.
Specific errors can be ignored with $parser->ignoreError(TodoTxtParser::ERROR_NAME).
Notes
- Metadata that doesn't match one of the rules becomes part of the description
- Leading/trailing whitespace and duplicate spaces get removed
- Add-Ons are not part of the clean text (not sure if that's correct thou)
- Anything goes for the description text, so remember to filter/escape accordingly
- For now there are no rules for projects, contexts and add-ons other then the regex, but some restrictions like valid characters or length might be added later on
All versions of todo-txt-parser with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3.0
The package juzim/todo-txt-parser contains the following files
Loading the files please wait ....