2017 © Pedro Peláez
 

library laravel-parsedown-extra

Laravel Wrapper of Parsedown Extra.

image

bhuvidya/laravel-parsedown-extra

Laravel Wrapper of Parsedown Extra.

  • Saturday, February 17, 2018
  • by bhuvidya
  • Repository
  • 1 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 13 % Grown

The README.md

This is based on the Laravel Parsedown package. I have merely done some adjustments to support Parsedown Extra., (*1)

Parsedown for Laravel

Build Status, (*2)

Note I have now switched the semver versioning for my Laravel packages to "match" the latest supported Laravel version., (*3)

A Laravel wrapper of Parsedown Extra to extend its features. If you want to know more about Parsedown Extra alone check out the base repository., (*4)

Features

  • Blade Directive
  • Helper Function

Installation

Parsedown Extra for Laravel is available as a composer package. You can install it using the command below:, (*5)

``` bash composer require "bhuvidya/laravel-parsedown-extra", (*6)


### Configuration If you're using **Laravel** +5.5 you don't need to follow the steps below. The [package auto-discovery](https://laravel-news.com/package-auto-discovery) feature has been implemented and will take care of loading the service provider for you. But if that's not your case you just need to add the service provider to your `config/app.php`: ``` php return [ // Other configurations above...    'providers' => [ // Other providers above... Bhuvidya\ParsedownExtra\Providers\ParsedownExtraServiceProvider::class, // Other providers below... ], // Other configurations below... ];

Usage

``` blade @parsedownextra('Hello Parsedown!'), (*7)


or (using a helper approach) ``` blade {{ parsedownextra('Hello _Parsedown_!') }}

Any of the codes above will generate:, (*8)

``` html , (*9)

Hello Parsedown!, (*10)


The helper can also be used with **PHP** throughout the project. ## Lumen Support As **Laravel** and **Lumen** share pretty much the same core the instructions below should be enough to set this package in yout **Lumen** project. ### Enable Facades in Your Project In your `bootstrap/app.php` ensure you have the following: ```php $app->withFacades();

Service Provider Registering

As Lumen does not support package auto-discovery you got to do it manually adding the code below in your bootstrap/app.php:, (*11)

$app->register(Bhuvidya\ParsedownExtra\Providers\ParsedownServiceProvider::class);

The Versions

17/02 2018

dev-master

9999999-dev http://parsedown.org/extra

Laravel Wrapper of Parsedown Extra.

  Sources   Download

MIT

The Requires

 

The Development Requires

by bhu Boue vidya

laravel parsedown extra

17/02 2018

v1.0.0

1.0.0.0 http://parsedown.org/extra

Laravel Wrapper of Parsedown Extra.

  Sources   Download

MIT

The Requires

 

The Development Requires

by bhu Boue vidya

laravel parsedown extra