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

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

natedrake/markdown
==================

PHP markdown converter

1.3.1(9y ago)022MITPHP

Since Mar 26Pushed 9y ago1 watchersCompare

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

READMEChangelog (7)Dependencies (1)Versions (8)Used By (0)

PHP Markdown
============

[](#php-markdown)

[![Build Status](https://camo.githubusercontent.com/3010b958b0217fa74d1ddac6a5280941ef17da381cb23dcfdff7f21e44b55c2a/68747470733a2f2f7472617669732d63692e6f72672f6e6174656472616b652f6d61726b646f776e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/natedrake/markdown)[![Latest Stable Version](https://camo.githubusercontent.com/05ad000bbe1b5cd2152aface6ab92dba0c7fcbea1dd5a645b62a664a560c95b3/68747470733a2f2f706f7365722e707567782e6f72672f6e6174656472616b652f6d61726b646f776e2f762f737461626c65)](https://packagist.org/packages/natedrake/markdown)[![Total Downloads](https://camo.githubusercontent.com/fee6035d5dabd56e0bd7f21c0a8bd4f455c746889e838035d693699fb9b886f5/68747470733a2f2f706f7365722e707567782e6f72672f6e6174656472616b652f6d61726b646f776e2f646f776e6c6f616473)](https://packagist.org/packages/natedrake/markdown)[![Latest Unstable Version](https://camo.githubusercontent.com/441fed7855bfb6704a094e91ace5bf93079e8f076c9c490c997d5178138bb384/68747470733a2f2f706f7365722e707567782e6f72672f6e6174656472616b652f6d61726b646f776e2f762f756e737461626c65)](https://packagist.org/packages/natedrake/markdown)[![License](https://camo.githubusercontent.com/141346cb59ac172efc251f84f799e15c3967c1ceb7acf2f6d35da65b10823ad6/68747470733a2f2f706f7365722e707567782e6f72672f6e6174656472616b652f6d61726b646f776e2f6c6963656e7365)](https://packagist.org/packages/natedrake/markdown)[![composer.lock](https://camo.githubusercontent.com/829b1f86e8e20d86f342a2f6c57b70a3eba3c26ae753aad083524389d6bda0f1/68747470733a2f2f706f7365722e707567782e6f72672f6e6174656472616b652f6d61726b646f776e2f636f6d706f7365726c6f636b)](https://packagist.org/packages/natedrake/markdown)

[![Monthly Downloads](https://camo.githubusercontent.com/3a51fd121a073f7dfaa25b911216ccc5d5b33c9d6ec671387b40bdc12a26fd01/68747470733a2f2f706f7365722e707567782e6f72672f6e6174656472616b652f6d61726b646f776e2f642f6d6f6e74686c79)](https://packagist.org/packages/natedrake/markdown)[![Daily Downloads](https://camo.githubusercontent.com/bf30bd4f3114d0189791494e1d5d5f16313a1b63050417d09befe2bb8fd9fb47/68747470733a2f2f706f7365722e707567782e6f72672f6e6174656472616b652f6d61726b646f776e2f642f6461696c79)](https://packagist.org/packages/natedrake/markdown)

PHP Markdown Converter
----------------------

[](#php-markdown-converter)

1. [Headings](https://github.com/natedrake/markdown/blob/master/README.md#headings)
2. [Italics](https://github.com/natedrake/markdown/blob/master/README.md#italics)
3. [Bold](https://github.com/natedrake/markdown/blob/master/README.md#bold)
4. [Strike Through](https://github.com/natedrake/markdown/blob/master/README.md#strike-through)
5. [Links](https://github.com/natedrake/markdown/blob/master/README.md#links)
6. [Images](https://github.com/natedrake/markdown/blob/master/README.md#images)
7. [Lists](https://github.com/natedrake/markdown/blob/master/README.md#lists)
    - [Unordered List](https://github.com/natedrake/markdown/blob/master/README.md#unordered-lists)
    - [Ordered List](https://github.com/natedrake/markdown/blob/master/README.md#ordered-lists)
8. [Block Quotes](https://github.com/natedrake/markdown/blob/master/README.md#block-quotes)
9. [Tables](https://github.com/natedrake/markdown/blob/master/README.md#tables)

Markdown is a PHP library for converting markdown to markup. It is a useful tool for creating documentation on a web page. For example, if your website contains a blog, wiki pages, any sort of editing from users you could allow them to style their documents using markdown.

### Headings

[](#headings)

`#` ``

`##` ``

`###` ``

`####` ``

`#####` ``

`## This is a Heading Two` will produce the following markup `This is a Heading Two`

### Italics

[](#italics)

`__text__`

Wrap text in `__` to make it italics

`__this text is italic__` will produce the following markup `this text is italic`

### Bold

[](#bold)

`**text**`

Wrap text in `**` to make it bold

`**this text is bold**` will produce the following markup `this text is bold`

### Links

[](#links)

`[Text](Hyperlink)`

Create links by inserting the link text in square brackets followed by the hyperlink in normal brackets

[Google](https://google.ie)

`[Google](https://google.ie)` will product the following markup `Google`

### Images

[](#images)

`![Alt Text](link to image)`

Create images by inserting the alternate text in square brackets followed by the link to the image in normal brackets

[![Git Logo](https://camo.githubusercontent.com/4ebbcc15348c5fa09541ed8dc80448f42c7b7443529e897c6ece04b3446b7dd8/68747470733a2f2f6173736574732d63646e2e6769746875622e636f6d2f696d616765732f6d6f64756c65732f6c6f676f735f706167652f4769744875622d4c6f676f2e706e67)](https://camo.githubusercontent.com/4ebbcc15348c5fa09541ed8dc80448f42c7b7443529e897c6ece04b3446b7dd8/68747470733a2f2f6173736574732d63646e2e6769746875622e636f6d2f696d616765732f6d6f64756c65732f6c6f676f735f706167652f4769744875622d4c6f676f2e706e67)

`![Git Logo](https://assets-cdn.github.com/images/modules/logos_page/GitHub-Logo.png)` will produce the following markup ``

### Code

[](#code)

Create inline code elements by surrounding elements in ````var x;````;

````var x;````

produces the following markup

```
var x;
```

if you need to span multiple lines use 4 back-ticks instead of three, and make sure to have one line break inside the back-ticks

### Lists

[](#lists)

#### Unordered Lists

[](#unordered-lists)

```
List
 - item one
 - item two
 - item three
```

will product the following markup

```

    item one
    item two
    item three

```

#### Ordered Lists

[](#ordered-lists)

```
List
 1. item one
 2. item two
 3. item three
```

will product the following markup

```

    item one
    item two
    item three

```

### Block Quotes

[](#block-quotes)

```
> this is a block quote
```

will product the following markup

```
 this is a block quote
```

### Tables

[](#tables)

Tables can now be created by using the bar character. Use the `|` character to outline your table and it's columns

```
|Heading One|Heading Two|Heading Three|
|Row1Col1|Row1Col2|Row1Col2|
|Row2Col1|Row2Col2|Row2Col2|
|Row3Col1|Row3Col2|Row3Col2|
```

produces a HTML table like:

```

        heading one
        heading two
        heading three

            row1Col1row1Col2row1Col3

            row2Col1row2Col2row2Col3

            row3Col1row3 col2row3Col3

```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 76% 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 ~1 days

Total

7

Last Release

3329d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e2f99934d37dedc830446d77f6295892096df0b5c3986c03ea908c7faf61c6d9?d=identicon)[natedrake](/maintainers/natedrake)

---

Top Contributors

[![natedrake](https://avatars.githubusercontent.com/u/6829099?v=4)](https://github.com/natedrake "natedrake (19 commits)")[![ecne](https://avatars.githubusercontent.com/u/12985825?v=4)](https://github.com/ecne "ecne (6 commits)")

---

Tags

markdownphp-markdown

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[mtdowling/jmespath.php

Declaratively specify how to extract elements from a JSON document

2.0k472.8M135](/packages/mtdowling-jmespathphp)[opis/closure

A library that can be used to serialize closures (anonymous functions) and arbitrary data.

2.6k230.0M284](/packages/opis-closure)[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M65](/packages/sabberworm-php-css-parser)[michelf/php-markdown

PHP Markdown

3.5k52.4M345](/packages/michelf-php-markdown)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)

PHPackages © 2026

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