PHPackages                             pixel418/markdownify - 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. pixel418/markdownify

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

pixel418/markdownify
====================

The HTML to Markdown converter for PHP

v2.3.3(2mo ago)195847.6k↓51.6%43[3 issues](https://github.com/Elephant418/Markdownify/issues)8MITPHPPHP &gt;=5.4.0CI failing

Since Feb 15Pushed 2mo ago12 watchersCompare

[ Source](https://github.com/Elephant418/Markdownify)[ Packagist](https://packagist.org/packages/pixel418/markdownify)[ Docs](https://github.com/elephant418/Markdownify)[ RSS](/packages/pixel418-markdownify/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (10)Dependencies (2)Versions (23)Used By (8)

Markdownify
===========

[](#markdownify)

[![Tests](https://github.com/Elephant418/Markdownify/actions/workflows/tests.yml/badge.svg?branch=master)](https://github.com/Elephant418/Markdownify/actions/workflows/tests.yml)[![Total Downloads](https://camo.githubusercontent.com/73777cdcc75f010c5044917361ae6432908b37fbf4ffd903646b34cbdedd68ac/68747470733a2f2f706f7365722e707567782e6f72672f706978656c3431382f6d61726b646f776e6966792f646f776e6c6f616473)](https://packagist.org/packages/pixel418/markdownify)[![MIT](https://camo.githubusercontent.com/918e29418a28e7f37d53cbc7691dcf2d0a68cc169647b3f54b6c7b903e68bbe3/68747470733a2f2f706f7365722e707567782e6f72672f706978656c3431382f6d61726b646f776e6966792f6c6963656e7365)](https://opensource.org/licenses/MIT)

The HTML to Markdown converter for PHP

[Code example](#code-example) | [How to Install](#how-to-install) | [How to Contribute](#how-to-contribute) | [Author &amp; Community](#author--community)

Code example
------------

[](#code-example)

### Markdown

[](#markdown)

```
$converter = new Markdownify\Converter;
$converter->parseString('Heading');
// Returns: # Heading
```

### Markdown Extra [as defined by @michelf](http://michelf.ca/projects/php-markdown/extra/)

[](#markdown-extra-as-defined-by-michelf)

```
$converter = new Markdownify\ConverterExtra;
$converter->parseString('Heading');
// Returns: # Heading {#md}
```

How to Install
--------------

[](#how-to-install)

This library package requires `PHP 5.4` or later and is compatible with `PHP 8.5`.
Install [Composer](http://getcomposer.org/doc/01-basic-usage.md#installation) and run the following command to get the latest version:

```
composer require pixel418/markdownify
```

How to Contribute
-----------------

[](#how-to-contribute)

1. Fork the Markdownify repository
2. Create a new branch for each feature or improvement
3. Send a pull request from each feature branch to the **v2.x** branch

If you don't know much about pull request, you can read [the Github article](https://help.github.com/articles/using-pull-requests)

Author &amp; Community
----------------------

[](#author--community)

Markdownify is under [MIT License](https://opensource.org/licenses/MIT)
It was created by [Milian Wolff](http://milianw.de)
It was converted to a Symfony Bundle by [Peter Kruithof](https://github.com/pkruithof)
It is maintained by [Thomas ZILLIOX](https://tzi.fr)

###  Health Score

63

—

FairBetter than 99% of packages

Maintenance84

Actively maintained with recent releases

Popularity57

Moderate usage in the ecosystem

Community33

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 79.4% 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 ~251 days

Recently: every ~753 days

Total

20

Last Release

78d ago

Major Versions

v2.1.6 → 3.x-dev2014-09-04

PHP version history (2 changes)v2.1.0PHP &gt;=5.3.0

v2.2.2PHP &gt;=5.4.0

### Community

Maintainers

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

![](https://avatars.githubusercontent.com/u/415891?v=4)[Thomas ZILLIOX](/maintainers/tzi)[@tzi](https://github.com/tzi)

---

Top Contributors

[![tzi](https://avatars.githubusercontent.com/u/415891?v=4)](https://github.com/tzi "tzi (104 commits)")[![pkruithof](https://avatars.githubusercontent.com/u/330828?v=4)](https://github.com/pkruithof "pkruithof (17 commits)")[![fieg](https://avatars.githubusercontent.com/u/1086908?v=4)](https://github.com/fieg "fieg (3 commits)")[![cleentfaar](https://avatars.githubusercontent.com/u/795661?v=4)](https://github.com/cleentfaar "cleentfaar (2 commits)")[![SL-Gundam](https://avatars.githubusercontent.com/u/912973?v=4)](https://github.com/SL-Gundam "SL-Gundam (1 commits)")[![inmarelibero](https://avatars.githubusercontent.com/u/254808?v=4)](https://github.com/inmarelibero "inmarelibero (1 commits)")[![danhanly](https://avatars.githubusercontent.com/u/1150741?v=4)](https://github.com/danhanly "danhanly (1 commits)")[![alexanderholman](https://avatars.githubusercontent.com/u/9385784?v=4)](https://github.com/alexanderholman "alexanderholman (1 commits)")[![raoul](https://avatars.githubusercontent.com/u/237164?v=4)](https://github.com/raoul "raoul (1 commits)")

---

Tags

htmlmarkdownmarkdown-convertermarkdownifyphphtmlconvertermarkdownmarkdownify

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pixel418-markdownify/health.svg)

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

###  Alternatives

[league/html-to-markdown

An HTML-to-markdown conversion helper for PHP

1.9k31.0M266](/packages/league-html-to-markdown)[texy/texy

Texy converts plain text in easy to read Texy syntax into structurally valid (X)HTML. It supports adding of images, links, nested lists, tables and has full support for CSS. Texy supports hyphenation of long words (which reflects language rules), clickable emails and URL (emails are obfuscated against spambots), national typographic single and double quotation marks, ellipses, em dashes, dimension sign, nonbreakable spaces (e.g. in phone numbers), acronyms, arrows and many others. Texy code can optionally contain HTML tags.

159855.5k15](/packages/texy-texy)[3f/converter

A set of classes to translate a text from HTML to BBcode and from BBCode to Markdown.

29152.0k](/packages/3f-converter)[interaction-design-foundation/nova-html-card

A Laravel Nova card to display arbitrary HTML content

67817.0k3](/packages/interaction-design-foundation-nova-html-card)[kartik-v/yii2-markdown

Advanced Markdown editing and conversion utilities for Yii Framework 2.0

88270.9k6](/packages/kartik-v-yii2-markdown)[wpreadme2markdown/wpreadme2markdown

Convert WordPress Plugin readme.txt to Markdown

9565.8k5](/packages/wpreadme2markdown-wpreadme2markdown)

PHPackages © 2026

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