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

Abandoned → [michelf/php-markdown](/?search=michelf%2Fphp-markdown)Library[Parsing &amp; Serialization](/categories/parsing)

dflydev/markdown
================

PHP Markdown &amp; Extra - DEPRECATED

v1.0.3(12y ago)1695.7M↑11.9%21[2 issues](https://github.com/dflydev/dflydev-markdown/issues)[1 PRs](https://github.com/dflydev/dflydev-markdown/pulls)20BSD-3-ClausePHPPHP &gt;=5.3

Since Jan 2Pushed 12y ago6 watchersCompare

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

READMEChangelogDependenciesVersions (5)Used By (20)

PHP Markdown &amp; Extra
========================

[](#php-markdown--extra)

An updated and stripped version of the original [PHP Markdown](http://michelf.com/projects/php-markdown/)by [Michel Fortin](http://michelf.com/). Works quite well with PSR-0 autoloaders and is [Composer](http://packagist.org/) friendly.

This Project Has Been Deprecated
================================

[](#this-project-has-been-deprecated)

Thank you for your interest in contributing to this package. Unfortunately, **I do not plan to continue maintaining this package.**

The original purpose of this package was to provide a way to get a PSR-0 and Composer friendly port of Michel Fortin's PHP Markdown library on Packagist. Michel was originally uninterested in Composer and did not want to make changes and said I was free to fork and maintain a special Composer package.

In January of 2013 (or around then) Michel finally joined the Composer bandwagon. More details can be found [here](https://github.com/michelf/php-markdown/issues/31). This means that the major reason this port existed (to be a Composer friendly port) effectively went away. This corresponded with the 1.3 release of PHP Markdown.

Additionally, other versions of PHP Markdown parsers have come into existence and are quite nice.

Please feel free to continue to use it as-is but if you are starting a new project I would recommend finding another library. If you have a project already depending on this package, I would recommend planning to migrate to something that is better maintained.

Thanks for your support and using this library over the years.

---

Changes from the official PHP Markdown &amp; Extra
--------------------------------------------------

[](#changes-from-the-official-php-markdown--extra)

The initial pass at updating PHP Markdown &amp; Extra left the core of the code more or less intact but the changes to the organization and naming were quite substantial. This effectively makes this package a hard fork from Markdown 1.0.1n and MarkdownExtra 1.2.4.

Updated in the following ways:

- Moved parser classes into their own files
- Using PHP 5.3 namespaces
- Following [PSR-0](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md) standards
- Replaced `@define` configuration variables with class `const` variables
- Integrated with [Travis CI](http://travis-ci.org/)
- Made [Composer](http://packagist.org/) friendly

Stripped in the following ways:

- No more embedded plugin code (WordPress, bBlog, etc.)
- No more top level function calls (`Markdown()`, etc.)

Last synced with:

- PHP Markdown v1.0.1o
- PHP Markdown Extra v1.2.5

Requirements
------------

[](#requirements)

- PHP 5.3+

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

[](#installation)

To add this package as a local, per-project dependency to your project, simply add a dependency on `dflydev/markdown` to your project's `composer.json` file. Here is a minimal example of a `composer.json` file that just defines a dependency on version 1.0 of this package:

```
{
    "require": {
        "dflydev/markdown": "1.0.*"
    }
}

```

Usage
-----

[](#usage)

Simple usage for the standard Markdown ([details](http://michelf.com/projects/php-markdown/)) parser:

```
