lkeio / laraparse
Laravel 5.5 package, this package is a wrapper around erusev/parsedown for Laravel
Installs: 26
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:package
Requires
- erusev/parsedown: ^1.6
Requires (Dev)
- orchestra/testbench: ~3.6
- phpunit/phpunit: ^7
This package is auto-updated.
Last update: 2024-04-09 19:38:44 UTC
README
This package is a wrapper around erusev/parsedown for Laravel. Parsedown is a Markdown syntax Parser.
Version Compatibility
Laravel | Laraparse |
---|---|
5.5.x | 1.2.x |
5.6.x | 1.2.x |
Installing
composer require lkeio/laraparse
Usage
- On your Controller
public function index()
{
// Insert Here your Markdown or Read it from your DB
$text = '# MarkDown Syntax';
return view('index', compact('text'));
}
- On your View
@laraparse($text)
Tests
On the root Package directory run :
./vendor/bin/phpunit --bootstrap vendor/autoload.php tests/LaraparseTests
Versioning
I use SemVer for versioning. For the versions available, see the tags on this repository.
Authors
- Larbi Kamal Elguerch - All projects - lkeio
License
This project is licensed under the MIT License - see the LICENSE file for details