PHPackages                             parsedown/laravel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. parsedown/laravel

AbandonedArchivedLibrary

parsedown/laravel
=================

Official Parsedown's Laravel Wrapper.

1.2.1(6y ago)861.1M↓24.6%12[2 PRs](https://github.com/parsedown/laravel/pulls)6MITPHPPHP &gt;=7.1.3

Since May 8Pushed 3y ago3 watchersCompare

[ Source](https://github.com/parsedown/laravel)[ Packagist](https://packagist.org/packages/parsedown/laravel)[ Docs](http://parsedown.org)[ RSS](/packages/parsedown-laravel/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (3)Versions (11)Used By (6)

> You might also like [Caret](https://caret.io?ref=parsedown) - our Markdown editor for Mac / Windows / Linux.

Parsedown for Laravel
---------------------

[](#parsedown-for-laravel)

[![Build Status](https://camo.githubusercontent.com/58688d7ae40c5a7fcc08fad0354dec8cbcf86d1f5a9251b9e4c67d232b07da5c/68747470733a2f2f7472617669732d63692e6f72672f7061727365646f776e2f6c61726176656c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/parsedown/laravel)

This package is a [Laravel](https://github.com/laravel/laravel) wrapper around **Parsedown**. If you want to know more about **Parsedown** alone check out our [base repository](https://github.com/erusev/parsedown).

### Features

[](#features)

- Blade Directive
- Configuration File
- Helper Function

### Installation

[](#installation)

**Parsedown for Laravel** is available as [a **Composer** package](https://packagist.org/packages/parsedown/laravel). You can install it using the command below:

```
composer require parsedown/laravel
```

### Configuration

[](#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 will need to add the service provider to your `config/app.php` file:

```
return [
    // Other configurations above...

    'providers' => [
        // Other providers above...
        Parsedown\Providers\ParsedownServiceProvider::class,
        // Other providers below...
    ],

    // Other configurations below...
];
```

This package uses the `Parsedown\Providers\ParsedownServiceProvider` service provider to create a singleton of **Parsedown**. That's stored it in a container called `parsedown`. It uses the following options to set the default behavior for that instance:

NameDescriptionDefault`breaks_enabled`Converts line breaks such as `\n` into `` tags.`false``inline`Enables inline parsing for the `parsedown()` helper and the `@parsedown` directive by default.`false``markup_escaped`Escapes **HTML** in trusted input. Redundant if `safe_mode` is enabled.`false``safe_mode`Doesn't process untrusted user-input.`true``urls_linked`Automatically converts **URL**s into anchor tags.`true`You can overwrite these values by publishing the `config/parsedown.php` file with the following command:

```
php artisan vendor:publish --provider="Parsedown\Providers\ParsedownServiceProvider"
```

### Usage

[](#usage)

The snippets below show how you can easily use **Parsedown** in your `*.blade.php` files:

```
@parsedown('Hello _Parsedown_!')
```

...or (using the helper approach)

```
{{ parsedown('Hello _Parsedown_!') }}
```

Any of the code above will generate:

```
Hello Parsedown!
```

If you want to parse a value using the inline style you just need to set the second argument as `true`:

```
@parsedown('Hello _Parsedown_!', true)
```

...or (using the helper approach)

```
{{ parsedown('Hello _Parsedown_!', true) }}
```

Any of the code above will generate:

```
Hello Parsedown!
```

The helper is globally available and can also be used with **PHP** code throughout your project.

Lumen Support
-------------

[](#lumen-support)

**Laravel** and **Lumen** pretty much share the same core code. The instructions below should be enough to set this package for your **Lumen** project.

### Enable Facades in Your Project

[](#enable-facades-in-your-project)

Ensure you have the following in your `bootstrap/app.php` file:

```
$app->withFacades();
```

### Service Provider Registering

[](#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` file:

```
$app->register(Parsedown\Providers\ParsedownServiceProvider::class);
```

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity53

Moderate usage in the ecosystem

Community25

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 92.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~139 days

Recently: every ~216 days

Total

8

Last Release

2324d ago

Major Versions

0.0.3 → 1.0.02017-08-23

PHP version history (3 changes)0.0.1PHP &gt;=5.6.4

1.0.0PHP &gt;=5.6

1.2.0PHP &gt;=7.1.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/0e0f163cff45d47762e6352bac467f6b33badfd78b12817fe37f086d467ae71d?d=identicon)[dregad](/maintainers/dregad)

![](https://www.gravatar.com/avatar/6cd931e3b6a93cc893618a2ffaf14728bec5727d72d854953fd13aa92d20b2ff?d=identicon)[eagostini](/maintainers/eagostini)

---

Top Contributors

[![eagostini](https://avatars.githubusercontent.com/u/3128457?v=4)](https://github.com/eagostini "eagostini (35 commits)")[![osbre](https://avatars.githubusercontent.com/u/23292709?v=4)](https://github.com/osbre "osbre (1 commits)")[![por](https://avatars.githubusercontent.com/u/67254?v=4)](https://github.com/por "por (1 commits)")[![wmather](https://avatars.githubusercontent.com/u/3214643?v=4)](https://github.com/wmather "wmather (1 commits)")

---

Tags

laravelparsedownlaravelparsedown

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/parsedown-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/parsedown-laravel/health.svg)](https://phpackages.com/packages/parsedown-laravel)
```

###  Alternatives

[alfredo-ramos/parsedown-extra-laravel

A Parsedown Extra package for Laravel

30155.1k1](/packages/alfredo-ramos-parsedown-extra-laravel)[benjaminhoegh/parsedown-extended

An extension for Parsedown.

5022.6k1](/packages/benjaminhoegh-parsedown-extended)[stepanenko3/nova-cards

A Laravel Nova info cards.

33143.0k](/packages/stepanenko3-nova-cards)[taufik-nurrohman/parsedown-extra-plugin

Configurable Markdown to HTML converter with Parsedown Extra.

5932.3k](/packages/taufik-nurrohman-parsedown-extra-plugin)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
