minetro / uniparser
Universal text parser (Texy, Markdown, Parsedown) for Nette & Nette/Latte
Fund package maintenance!
f3l1x
contributte.org/partners.html
Installs: 12 418
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 3
Forks: 2
Open Issues: 0
Requires
- php: >=5.4.0
Requires (Dev)
- erusev/parsedown-extra: ~0.7.0
- michelf/php-markdown: ~1.5.0
- nette/tester: ~1.4.0
- texy/texy: ~2.6.0
Suggests
- erusev/parsedown-extra: For fast-processing markdown
- michelf/php-markdown: For processing markdown
- texy/texy: For processing texy
This package is not auto-updated.
Last update: 2022-02-01 12:47:20 UTC
README
Website 🚀 contributte.org | Contact 👨🏻💻 f3l1x.io | Twitter 🐦 @contributte
Disclaimer
⚠️ | This project is no longer being maintained. Please use contributte/latte. |
---|
Composer | minetro/uniparser |
---|---|
Version | |
PHP | |
License |
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])
Development
This package was maintain by these authors.
Consider to support contributte development team. Also thank you for being used this package.