PHPackages                             alfredo-ramos/parsedown-extra-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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. alfredo-ramos/parsedown-extra-laravel

ActivePackage[Parsing &amp; Serialization](/categories/parsing)

alfredo-ramos/parsedown-extra-laravel
=====================================

A Parsedown Extra package for Laravel

7.1.0(2mo ago)30155.1k↓33.3%11GPL-3.0-or-laterPHPPHP ^8.2.0CI passing

Since Jan 14Pushed 2mo ago3 watchersCompare

[ Source](https://github.com/AlfredoRamos/parsedown-extra-laravel)[ Packagist](https://packagist.org/packages/alfredo-ramos/parsedown-extra-laravel)[ Docs](https://github.com/AlfredoRamos/parsedown-extra-laravel)[ Fund](https://alfredoramos.mx/donate/)[ RSS](/packages/alfredo-ramos-parsedown-extra-laravel/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (9)Versions (41)Used By (1)

### About

[](#about)

A [Parsedown Extra](https://github.com/erusev/parsedown-extra) package for Laravel.

[HTML Purifier](https://github.com/ezyang/htmlpurifier) is also used to filter the HTML output, protecting your application for insecure content. Additionally, [HTML5 Definitions for HTML Purifier](https://github.com/xemlock/htmlpurifier-html5) is used to add new definitions and sanitization for HTML5.

[![Build Status](https://camo.githubusercontent.com/4564cbf3f2de73ed21aca12478e2879a11abe9b267d44d46c35013931fee5b2c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f416c667265646f52616d6f732f7061727365646f776e2d65787472612d6c61726176656c2f63692e796d6c3f7374796c653d666c61742d737175617265)](https://github.com/AlfredoRamos/parsedown-extra-laravel/actions)[![Latest Stable Version](https://camo.githubusercontent.com/9344677d456b75cc262411ebd66ee4c269d0cc87bbba49fcebdb9e86082c5b94/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616c667265646f2d72616d6f732f7061727365646f776e2d65787472612d6c61726176656c2e7376673f7374796c653d666c61742d737175617265266c6162656c3d737461626c65)](https://packagist.org/packages/alfredo-ramos/parsedown-extra-laravel)[![Code Quality](https://camo.githubusercontent.com/535a03e473878e2d27c5f7693a77d67bb815d5b8f60f6fbff485fa66593b6580/68747470733a2f2f696d672e736869656c64732e696f2f636f646163792f67726164652f35366464383431333230346534623162613361373135636335376264386665652e7376673f7374796c653d666c61742d737175617265)](https://app.codacy.com/manual/AlfredoRamos/parsedown-extra-laravel/dashboard)[![License](https://camo.githubusercontent.com/069e83ba4727127303778a3f910aa24920a0223254f9c777ad6feaca9bf1566d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f616c667265646f2d72616d6f732f7061727365646f776e2d65787472612d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://raw.githubusercontent.com/AlfredoRamos/parsedown-extra-laravel/main/LICENSE)

### Compatibility

[](#compatibility)

VersionLaravelLumenStatus0.8.x&gt;= 5.5.x, &lt; 6.x.x&gt;= 5.5.x, &lt; 6.x.xEnd of life1.x.x6.x.x6.x.xEnd of life2.x.x7.x.x7.x.xEnd of life3.x.x8.x.x8.x.xEnd of life4.x.x9.x.x9.x.xEnd of life5.x.x10.x.x10.x.xEnd of life6.x.x11.x.x11.x.xActive support7.x.x12.x.xN/AActive support### Installation

[](#installation)

Run the following command on your terminal:

```
composer require 'alfredo-ramos/parsedown-extra-laravel:^7.0.0'
```

#### Laravel

[](#laravel)

Service providers and aliases will be registered automatically since Laravel `5.5.x`, thanks to the new package auto-discovery.

#### Lumen

[](#lumen)

Support for Lumen has been dropped since version `7.x.x`. If you need this package for Lumen up to version `11.x.x`, please install the previous major version [`6.0.0`](https://github.com/AlfredoRamos/parsedown-extra-laravel/tree/6.0.0)

### Usage

[](#usage)

The `Markdown::parse()` method is responsible to transform the Markdown syntax into HTML, its signature is the following:

```
Markdown::parse(string $text = '', array $config = [])
```

ParameterData typeDefault valueRequiredDescription`$text``string``''`YesMarkdown text`$config``array`, `string``[]`NoExtra configuration for HTML Purifier**Notes:**

- If `$config` is a string, it will be trated as an array key in the `['purifier']['settings']` array.
- If `$config` is an array it will extend default configuration for HTML Purifier.
- An empty value for `$config` means that it will use default values for HTML Purifier, see `\AlfredoRamos\ParsedownExtra\HTMLPurifierLaravel::getConfig()` for more information.

**Using `$config` as a string**

```
Markdown::parse('Hello world', ['config' => 'comments'])
```

Where `comments` is the key of the array `settings`.

```
return [
	'purifier'	=> [
		'enabled'	=> true,
		'settings'	=> [
			'default' => [...],
			'comments' => [...]
		]
	]
];
```

**Using `$config` as an array**

```
Markdown::parse('[DuckDuckGo](https://duckduckgo.com/)', ['config' => [
	'URI.Host' => 'localhost',
	'URI.DisableExternal' => true
]])
```

For all configuration options see the official [HTML Purifier config docs](http://htmlpurifier.org/live/configdoc/plain.html).

**Using default settings**

```
Markdown::parse('Hello world!')
// Is the same as
Markdown::parse('Hello world!', ['config' => 'default'])
```

#### Blade

[](#blade)

It can be used in Blade through the `Markdown` facade:

```
{!! Markdown::parse("Hello world") !!}
{!! Markdown::parse("[XSS link](javascript:alert('xss'))") !!}
```

The code above will print:

```
Hello world

XSS link

XSS link
```

#### Helper

[](#helper)

For your convenience, the `markdown()` helper function is also available. It accepts the same parameters as the facade.

```
markdown('Hello world', ['purifier' => false])
```

### Configuration

[](#configuration)

To add new or edit the default options, run the following command to make a copy of the default configuration file:

```
php artisan vendor:publish \
	--provider='AlfredoRamos\ParsedownExtra\ParsedownExtraServiceProvider' \
	--tag=config --force
```

###  Health Score

61

—

FairBetter than 99% of packages

Maintenance84

Actively maintained with recent releases

Popularity39

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity88

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 97.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 ~109 days

Recently: every ~369 days

Total

38

Last Release

83d ago

Major Versions

2.0.0 → 3.0.02020-09-09

3.0.0 → 4.0.02022-02-09

4.0.0 → 5.0.02023-04-02

5.0.0 → 6.0.02025-03-05

6.0.0 → 7.0.02025-03-05

PHP version history (13 changes)0.1.0PHP &gt;=5.4.0

0.2.5PHP &gt;=5.5.0

0.3.0PHP &gt;=5.5.9

0.5.0PHP &gt;=5.6.4

0.7.0PHP &gt;=7.0

0.8.0PHP ^7.1.3

0.8.2PHP ^7.0.0

1.0.0PHP ^7.2.0

2.0.0PHP ^7.2.5

3.0.0PHP ^7.3.0 || ^8.0.0

4.0.0PHP ^8.0.2

5.0.0PHP ^8.1.0

6.0.0PHP ^8.2.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4165935?v=4)[Alfredo Ramos](/maintainers/AlfredoRamos)[@AlfredoRamos](https://github.com/AlfredoRamos)

---

Top Contributors

[![AlfredoRamos](https://avatars.githubusercontent.com/u/4165935?v=4)](https://github.com/AlfredoRamos "AlfredoRamos (270 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (8 commits)")

---

Tags

laravellumenmarkdownmarkdown-extraparsedownparsedown-extralaravelmarkdownmarkdown-extraparsedownparsedown-extra

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[erusev/parsedown-extra

An extension of Parsedown that adds support for Markdown Extra.

84314.8M192](/packages/erusev-parsedown-extra)[tovic/parsedown-extra-plugin

Configurable Markdown to HTML converter with Parsedown Extra.

5933.7k](/packages/tovic-parsedown-extra-plugin)[taufik-nurrohman/parsedown-extra-plugin

Configurable Markdown to HTML converter with Parsedown Extra.

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

Adds ability to have meta data in markdown files parsed by eursev/parsedown or eruseve/parsedown-extra

2637.2k2](/packages/pagerange-metaparsedown)[ultrono/laravel-sitemap

Sitemap generator for Laravel 11, 12 and 13

36412.6k6](/packages/ultrono-laravel-sitemap)[benjaminhoegh/parsedown-extended

An extension for Parsedown.

5022.6k1](/packages/benjaminhoegh-parsedown-extended)

PHPackages © 2026

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