PHPackages                             fdekker/commonmark-ext-emoji - 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. fdekker/commonmark-ext-emoji

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

fdekker/commonmark-ext-emoji
============================

An emoji extension for league/commonmark

v1.1.2(3y ago)114.3k↓34.1%MITPHPPHP &gt;=8.1CI passing

Since Apr 23Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/frankdekker/commonmark-ext-emoji)[ Packagist](https://packagist.org/packages/fdekker/commonmark-ext-emoji)[ RSS](/packages/fdekker-commonmark-ext-emoji/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (10)Versions (7)Used By (0)

[![Minimum PHP Version](https://camo.githubusercontent.com/230588f62e4b3ba29858fcfcf1bbfe253f82c4180088091d6c7d4c6c06d80145/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230382e312d383839324246)](https://php.net/)[![Software License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](LICENSE)[![Run tests](https://github.com/frankdekker/commonmark-ext-emoji/workflows/Run%20checks/badge.svg)](https://github.com/frankdekker/commonmark-ext-emoji/workflows/Run%20checks/badge.svg)

Emoji Extension for CommonMark
==============================

[](#emoji-extension-for-commonmark)

[The PHPLeague/CommonMark](https://github.com/thephpleague/commonmark) extension for emoji's support.

### Support emoji's:

[](#support-emojis)

- [EmojiDataProvider::full()](https://github.com/frankdekker/commonmark-ext-emoji/blob/main/resources/full.php)
- [EmojiDataProvider::light()](https://github.com/frankdekker/commonmark-ext-emoji/blob/main/resources/light.php)
- [Shortcuts](https://github.com/frankdekker/commonmark-ext-emoji/blob/main/resources/shortcuts.php)

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

[](#installation)

Include the library as dependency in your own project via:

```
composer require "fdekker/commonmark-ext-emoji"
```

Usage:
------

[](#usage)

```
// Define your configuration, if needed
$config = [];

// Configure the Environment with all the CommonMark and GFM parsers/renderers
$environment = new Environment($config);
$environment->addExtension(new CommonMarkCoreExtension());
$environment->addExtension(new GithubFlavoredMarkdownExtension());
$environment->addExtension(new EmojiExtension(EmojiDataProvider::light()));

$converter = new MarkdownConverter($environment);
echo $converter->convert('Works (y) :thumbsup: (thumbsup)');
```

Outputs:

```
Works 👍 👍 👍

```

To read more about configuring extension visit:

Customization
-------------

[](#customization)

You can implement `EmojiDataProviderInterface` to supply your own emoji's list.

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance54

Moderate activity, may be stable

Popularity27

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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

Total

5

Last Release

1118d ago

### Community

Maintainers

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

---

Top Contributors

[![frankdekker](https://avatars.githubusercontent.com/u/2179983?v=4)](https://github.com/frankdekker "frankdekker (8 commits)")

---

Tags

commonmarkcommonmark-extensionemojismarkdown

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/fdekker-commonmark-ext-emoji/health.svg)

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

###  Alternatives

[spatie/laravel-markdown

A highly configurable markdown renderer and Blade component for Laravel

4053.4M35](/packages/spatie-laravel-markdown)[mnapoli/front-yaml

2895.6M45](/packages/mnapoli-front-yaml)[daux/daux.io

Documentation generator that uses a simple folder structure and Markdown files to create custom documentation on the fly

825191.0k1](/packages/daux-dauxio)[spatie/sheets

Store &amp; retrieve your static content in plain text files

30187.7k4](/packages/spatie-sheets)[prezet/prezet

Prezet: Markdown Blogging for Laravel

2969.8k2](/packages/prezet-prezet)[sinnbeck/markdom

Converts markdown to html with classes

69122.6k2](/packages/sinnbeck-markdom)

PHPackages © 2026

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