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

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

originphp/markdown
==================

OriginPHP Markdown

2.0.0(5y ago)1110MITPHPPHP &gt;=7.3.0CI failing

Since Oct 12Pushed 5y ago1 watchersCompare

[ Source](https://github.com/originphp/markdown)[ Packagist](https://packagist.org/packages/originphp/markdown)[ Docs](https://www.originphp.com)[ RSS](/packages/originphp-markdown/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (3)Versions (5)Used By (0)

Markdown
========

[](#markdown)

[![license](https://camo.githubusercontent.com/6fdb99389fe9d9e8a5c197002a191ace7c8b12a2020c0fa5756cf17aa08a4966/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874477265656e2e737667)](https://camo.githubusercontent.com/6fdb99389fe9d9e8a5c197002a191ace7c8b12a2020c0fa5756cf17aa08a4966/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874477265656e2e737667)[![build](https://github.com/originphp/markdown/workflows/CI/badge.svg)](https://github.com/originphp/markdown/actions)[![coverage](https://camo.githubusercontent.com/e8fc3883f5d97dca4a989f09ca0f7003e81224a8e0b46af0151b4bf6e5b871f3/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6f726967696e7068702f6d61726b646f776e2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/originphp/markdown?branch=master)

The Markdown utility gives you useful functions for converting to and from markdown.

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

[](#installation)

To install this package

```
$ composer require originphp/markdown

```

Convert markdown To HTML
------------------------

[](#convert-markdown-to-html)

To convert HTML to markdown

```
$html = Markdown::toHtml($markdown);
```

By default markdown is escaped before converting to HTML this prevents people putting malicious HTML code. You can disable this by passing the options array with `escape` set to false.

```
Markdown::toHtml($markdown,['escape'=>false]);
```

Convert markdown To Text
------------------------

[](#convert-markdown-to-text)

To convert markdown to text:

```
$text = Markdown::toText($markdown);
```

Convert to markdown From HTML
-----------------------------

[](#convert-to-markdown-from-html)

To convert HTML to markdown.

```
$markdown = Markdown::fromHtml($html);
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 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 ~149 days

Total

4

Last Release

1961d ago

Major Versions

1.0.2 → 2.0.02021-01-04

PHP version history (3 changes)1.0.0PHP ^7.2.0

1.0.2PHP &gt;=7.2.0

2.0.0PHP &gt;=7.3.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/7e8a821333d9c7b7bc2ad3d164d142f65cd3912dea78033d31f76b0f19ba8a0c?d=identicon)[originphp](/maintainers/originphp)

---

Top Contributors

[![jamielsharief](https://avatars.githubusercontent.com/u/20553479?v=4)](https://github.com/jamielsharief "jamielsharief (10 commits)")

---

Tags

parsermarkdownoriginPHP

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[erusev/parsedown

Parser for Markdown.

15.0k151.8M732](/packages/erusev-parsedown)[league/commonmark

Highly-extensible PHP Markdown parser which fully supports the CommonMark spec and GitHub-Flavored Markdown (GFM)

3.0k404.0M702](/packages/league-commonmark)[erusev/parsedown-extra

An extension of Parsedown that adds support for Markdown Extra.

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

Parser for Markdown.

21342.8k3](/packages/parsedown-parsedown)[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)

PHPackages © 2026

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