PHPackages                             cohensive/markdown - 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. cohensive/markdown

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

cohensive/markdown
==================

PHP Markdown variant for Laravel 4.

4.0.0(12y ago)512.9k2BSD-3-ClausePHP

Since Nov 25Pushed 11y ago2 watchersCompare

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

READMEChangelogDependenciesVersions (3)Used By (0)

Markdown Extra for Laravel 4
============================

[](#markdown-extra-for-laravel-4)

This is not a canonical Markdown version. This variant contains several differences:

1. One line break will result in a `` tag - just like in Github Markdown.
2. Underscores (\_) in the middle of the word won't add italics or bold stylings.
3. Grave character (~ also known as tilde) will result in `` tag usually used to add line-through or strike-through styling.
4. Double grave character will result in `` tag wrapping.

Installation
------------

[](#installation)

Add following require to your `composer.json` file:

```
	// For Laravel 4.1.x+
	"cohensive/markdown": "dev-master"
	// OR for Laravel 4.0.x
	"cohensive/markdown": "4.0.0"

```

Then run `composer install` or `composer update` to download it and autoload.

In `providers` array you need to add new package:

```
'providers' => array(

	//...
	'Cohensive\Markdown\MarkdownServiceProvider',
	//...

)

```

In aliases:

```
'aliases' => array(

	//...
	'Markdown' => 'Cohensive\Markdown\Facades\Markdown'
	//...

)

```

And after all that, we need to add config file, containing several options for Markdown.

```
	php artisan config:publish cohensive/markdown

```

Usage
-----

[](#usage)

```
	Markdown::transform('Hello **World**');

```

Laravel 5
---------

[](#laravel-5)

This package won't be supporting Laravel 5 version. Use CommonMark.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

2

Last Release

4557d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/578455?v=4)[Kane Cohen](/maintainers/KaneCohen)[@KaneCohen](https://github.com/KaneCohen)

---

Top Contributors

[![KaneCohen](https://avatars.githubusercontent.com/u/578455?v=4)](https://github.com/KaneCohen "KaneCohen (31 commits)")

---

Tags

laravelhtmlmarkdown

### Embed Badge

![Health badge](/badges/cohensive-markdown/health.svg)

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

###  Alternatives

[interaction-design-foundation/nova-html-card

A Laravel Nova card to display arbitrary HTML content

67731.2k3](/packages/interaction-design-foundation-nova-html-card)[pixel418/markdownify

The HTML to Markdown converter for PHP

196800.8k8](/packages/pixel418-markdownify)[cartalyst/interpret

A driver-based content rendering package, with support for HTML, Markdown &amp; plain text. You can register custom drivers for custom content types.

1914.7k](/packages/cartalyst-interpret)[torchlight/torchlight-commonmark

A Commonmark extension for Torchlight, the syntax highlighting API.

29256.6k6](/packages/torchlight-torchlight-commonmark)

PHPackages © 2026

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