PHPackages                             jonnybarnes/emoji-a11y - 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. jonnybarnes/emoji-a11y

ActiveLibrary

jonnybarnes/emoji-a11y
======================

Make emoji more accessible

v0.3(8y ago)51.2kCC0-1.0PHPPHP &gt;=7.0

Since Feb 1Pushed 6y ago1 watchersCompare

[ Source](https://github.com/jonnybarnes/emoji-a11y)[ Packagist](https://packagist.org/packages/jonnybarnes/emoji-a11y)[ RSS](/packages/jonnybarnes-emoji-a11y/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (1)Versions (5)Used By (0)

emoji-a11y
==========

[](#emoji-a11y)

Make emoji more accessible.

Install
-------

[](#install)

Add this package with composer:

```
composer require jonnybarnes/emoji-a11y

```

Usage
-----

[](#usage)

Anywhere you have some text with emoji use the `makeEmojiAccessible` method.

```
$emoji = new Jonnybarnes\EmojiA11y\EmojiModifier();
$text = 'I’m 😀';
$emoji->makeEmojiAccessible($text); // I’m 😀

```

### Customise HTML

[](#customise-html)

You can pass in a string to the constructor that will be used in the `makeEmojiAccessible` method. We use PHP’s [sprinf](https://secure.php.net/manual/en/function.sprintf.php)function.

Three variables are passed into the function. The desired output form, then the text of the emoji, then the matched emoji character. Thankfully `sprintf` allows you to swap variable order if you need to, see example 3 in the manual.

Of course you need to provide your own CSS for presentation.

Inspired by

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

Total

4

Last Release

3235d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0650c4ecaa439167fe726ab5bcc87151acd7e344573cc5c5744c86b7c68e3e96?d=identicon)[jonnybarnes](/maintainers/jonnybarnes)

---

Top Contributors

[![jonnybarnes](https://avatars.githubusercontent.com/u/108303?v=4)](https://github.com/jonnybarnes "jonnybarnes (29 commits)")

---

Tags

a11yemojiphpaccessibilityemojia11y

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jonnybarnes-emoji-a11y/health.svg)

```
[![Health](https://phpackages.com/badges/jonnybarnes-emoji-a11y/health.svg)](https://phpackages.com/packages/jonnybarnes-emoji-a11y)
```

###  Alternatives

[rinvex/countries

Rinvex Countries is a simple and lightweight package for retrieving country details with flexibility. A whole bunch of data including name, demonym, capital, iso codes, dialling codes, geo data, currencies, flags, emoji, and other attributes for all 250 countries worldwide at your fingertips.

1.7k7.4M48](/packages/rinvex-countries)[iamcal/php-emoji

This is a PHP library for dealing with Emoji, allowing you to convert between various native formats and displaying them using HTML.

1.3k481.1k](/packages/iamcal-php-emoji)[annexare/countries-list

Continents &amp; countries: ISO 3166-1 alpha-2 code, name, ISO 639-1 languages, capital, currency, native name, phone. JSON, CSV and SQL.

1.3k220.8k1](/packages/annexare-countries-list)[spatie/emoji

Display emoji characters

4671.2M32](/packages/spatie-emoji)[s9e/text-formatter

Multi-purpose text formatting and markup library. Plugins offer support for BBCodes, Markdown, emoticons, HTML, embedding third-party media (YouTube, etc...), enhanced typography and more.

2413.1M29](/packages/s9e-text-formatter)[joypixels/emoji-toolkit

JoyPixels is a complete set of emoji designed for the web. The emoji-toolkit includes libraries to easily convert unicode characters to shortnames (:smile:) and shortnames to JoyPixels emoji images. PNG formats provided for the emoji images.

465817.1k7](/packages/joypixels-emoji-toolkit)

PHPackages © 2026

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