Statistics
6886
3
0
1.4y
Badges
Dependencies
  • php (>=5.4.0)

Uniparser

Universal text parser for Nette & Latte.


Build Status Downloads total Latest stable HHVM Status

Discussion / Help

Join the chat

Install

$ composer require minetro/uniparser:~1.0.0

Dependencies

TexyAdapter

"texy/texy": "~2.6.0"

ParsedownAdapter

"erusev/parsedown-extra": "~0.7.0"

MarkdownAdapter

"michelf/php-markdown": "~1.5.0"

Usage

Standalone

use Minetro\Uniparser\ParserFactory;

$factory = new ParserFactory();

$adapter = $factory->create('parsedown');

echo $adapter->parse($text);

Latte

uniparser.factory: Minetro\Uniparser\ParserFactory

nette.latteFactory:
    setup:
        - addFilter(texy, [@uniparser.factory::create('texy'), parse])
        - addFilter(parsedown, [@uniparser.factory::create('parsedown'), parse])
        - addFilter(markdown, [@uniparser.factory::create('markdown'), parse])

No release at this moment. Try to create first one.

Is this addon outdated? Did you find an issue? Please report it.

Componette Componette admin@componette.com