PHPackages                             rezozero/commonmark-ext-footnotes - 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. rezozero/commonmark-ext-footnotes

Abandoned → [league/commonmark](/?search=league%2Fcommonmark)ArchivedCommonmark-extension[Parsing &amp; Serialization](/categories/parsing)

rezozero/commonmark-ext-footnotes
=================================

A footnote extension for CommonMark PHP implementation

1.0.3(5y ago)32.7k2MITPHPPHP &gt;=7.1

Since Dec 6Pushed 5y ago4 watchersCompare

[ Source](https://github.com/rezozero/commonmark-ext-footnotes)[ Packagist](https://packagist.org/packages/rezozero/commonmark-ext-footnotes)[ Docs](https://github.com/rezozero/commonmark-ext-footnotes)[ RSS](/packages/rezozero-commonmark-ext-footnotes/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (6)Versions (13)Used By (0)

CommonMark footnotes Extension
==============================

[](#commonmark-footnotes-extension)

The Footnotes extension adds the ability to create footnotes in CommonMark documents.

[![Packagist Version](https://camo.githubusercontent.com/f07d5cd301d0ec0c61782129af7379fe39f0325f311bba8d470b871e558cf60a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72657a6f7a65726f2f636f6d6d6f6e6d61726b2d6578742d666f6f746e6f746573)](https://packagist.org/packages/rezozero/commonmark-ext-footnotes)[![Build Status](https://camo.githubusercontent.com/cb9ce5808b8cf80b638c3f9b9977ca49ad3d71d6461691b987478d2910c0134c/68747470733a2f2f7472617669732d63692e6f72672f72657a6f7a65726f2f636f6d6d6f6e6d61726b2d6578742d666f6f746e6f7465732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/rezozero/commonmark-ext-footnotes)

DEPRECATED
----------

[](#deprecated)

**This extension has been deprecated**. All of its functionality now exists in [`league/commonmark`](https://github.com/thephpleague/commonmark) 1.5+ under the `League\CommonMark\Extension\Footnote` namespace, so you should upgrade to that version and use that bundled extension instead of this one.

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

[](#installation)

This project can be installed via Composer:

```
composer require rezozero/commonmark-ext-footnotes

```

Usage
-----

[](#usage)

Configure your `Environment` as usual and simply add the `FootnoteExtension` provided by this package:

```
use League\CommonMark\Converter;
use League\CommonMark\DocParser;
use League\CommonMark\Environment;
use League\CommonMark\HtmlRenderer;
use RZ\CommonMark\Ext\Footnote\FootnoteExtension;

// Obtain a pre-configured Environment with all the standard CommonMark parsers/renderers ready-to-go
$environment = Environment::createCommonMarkEnvironment();

// Add this extension
$environment->addExtension(new FootnoteExtension());

// Instantiate the converter engine and start converting some Markdown!
$converter = new Converter(new DocParser($environment), new HtmlRenderer($environment));

echo $converter->convertToHtml('# Hello World!');
```

Syntax
------

[](#syntax)

Code:

```
Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi[^note1] leo risus, porta ac consectetur ac.

[^note1]: Elit Malesuada Ridiculus
```

Result:

```

    Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit.
    Lorem ipsum dolor sit amet, consectetur adipiscing elit.
    Morbi1 leo risus, porta ac consectetur ac.

                Elit Malesuada Ridiculus &#8617;

```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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 ~18 days

Recently: every ~27 days

Total

12

Last Release

2145d ago

Major Versions

0.1.7 → 1.0.02020-04-10

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/380026?v=4)[Ambroise Maupate](/maintainers/ambroisemaupate)[@ambroisemaupate](https://github.com/ambroisemaupate)

---

Top Contributors

[![ambroisemaupate](https://avatars.githubusercontent.com/u/380026?v=4)](https://github.com/ambroisemaupate "ambroisemaupate (22 commits)")[![nonoesp](https://avatars.githubusercontent.com/u/1243210?v=4)](https://github.com/nonoesp "nonoesp (10 commits)")[![markhalliwell](https://avatars.githubusercontent.com/u/351902?v=4)](https://github.com/markhalliwell "markhalliwell (1 commits)")

---

Tags

parsermarkdowncommonmarkfootnote

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/rezozero-commonmark-ext-footnotes/health.svg)

```
[![Health](https://phpackages.com/badges/rezozero-commonmark-ext-footnotes/health.svg)](https://phpackages.com/packages/rezozero-commonmark-ext-footnotes)
```

###  Alternatives

[league/commonmark

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

2.9k404.0M697](/packages/league-commonmark)[torchlight/torchlight-commonmark

A Commonmark extension for Torchlight, the syntax highlighting API.

29256.6k6](/packages/torchlight-torchlight-commonmark)[ows/commonmark-sup-sub-extensions

A sup/sub extension for CommonMark PHP implementation

107.7k](/packages/ows-commonmark-sup-sub-extensions)[zoon/commonmark-ext-youtube-iframe

Extension for league/commonmark to replace youtube link with iframe

12275.9k1](/packages/zoon-commonmark-ext-youtube-iframe)

PHPackages © 2026

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