Reputation: 1725
I'm new to laravel and I would like to ask how to install php markdown library into Laravel 4?
I know how to install a laravel package, but I have no idea on how to install a php file.
Do anyone know how to install it? or using composer?
Library source: http://michelf.ca/projects/php-markdown/
Upvotes: 0
Views: 423
Reputation: 4430
The library is exist on packagist anyway: https://packagist.org/packages/michelf/php-markdown , so you can use composer. Edit composer.json add following line to "require" property:
"michelf/php-markdown": "1.4.*"
run:
composer update
Now you can use it like:
\Michelf\Markdown::defaultTransform($my_text);
Upvotes: 4