benjam1 / php-markup
This package is abandoned and no longer maintained.
No replacement package was suggested.
PHP library that renders markups
dev-master / 1.0.x-dev
2014-05-10 00:56 UTC
Requires
- michelf/php-markdown: ~1.4
- symfony/process: ~2.4
Requires (Dev)
- phpspec/phpspec: ~2.0
This package is not auto-updated.
Last update: 2020-01-20 03:51:47 UTC
README
PHP Markup renders files written with a markup language.
Markups
- Markdown: .md, .markdown...
- RestructuredText: .rst (http://docutils.sourceforge.net/)
Installation
Install PHP Markup through composer
$> composer require benjam1/php-markup
Usage
$markups = new BenjaM1\Markup(); $markups->addMarkup(new BenjaM1\Markdown()); $markups->addMarkup(new BenjaM1\Rest2Html()); $markups->render('foo/bar.rst'); $markups->render('foo/baz.md');
Testing
$> composer install --dev $> ./vendor/bin/phpspec run