PHPackages                             neoisrecursive/emojify - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. neoisrecursive/emojify

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

neoisrecursive/emojify
======================

convert shortnames to emojis and see if shortname is emoji

1.1.0(4y ago)3101[1 issues](https://github.com/NeoIsRecursive/Emojify/issues)GPL-3.0-onlyPHPPHP &gt;=8.0

Since Mar 23Pushed 3y ago1 watchersCompare

[ Source](https://github.com/NeoIsRecursive/Emojify)[ Packagist](https://packagist.org/packages/neoisrecursive/emojify)[ RSS](/packages/neoisrecursive-emojify/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (5)Used By (0)

Emojify
=======

[](#emojify)

provides methods for

- checking if string is shortcode
- replace shortcode with emoji
- replacing all shortcodes in string with emoji

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

[](#installation)

You can install it with composer:

```
composer require neoisrecursive/emojify

```

usage
-----

[](#usage)

```
use Neoisrecursive\Emojify;

$emojify = new Emojify();

$string = 'hello here is an emoji :smile:';

$emojify->WholeString($string);
// hello, here is an emoji 😄

$emojify->IsShortname(':sunglasses:');
//bool(true)

$emojify->ShortnameToEmoji(':sunglasses:');
//string(4) "😎"

```

how it works (behind the scenes)
--------------------------------

[](#how-it-works-behind-the-scenes)

The regex looks for a ":" and then for spaces(" "), since no shortcode contains spaces and breaks if it finds one, if not then another ":", and if the characters inside is a shortcode it returns true.

```
$string3 = ':not_emoji::smile: will work, :not_emoji:smile: will
not while :not_emoji :smile: will work'

$emojify->WholeString($string3);
//string(85) ":not_emoji:😄 will work, :not_emoji:smile: will not while :not_emoji 😄 will work"

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

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

Total

4

Last Release

1516d ago

Major Versions

0.1.1 → 1.0.02022-03-23

### Community

Maintainers

![](https://www.gravatar.com/avatar/1bb39f8bd8d516c93e385e3d5157fc6845b9b5cbc6cc56728add4b12e761dffc?d=identicon)[NeoIsRecursive](/maintainers/NeoIsRecursive)

---

Top Contributors

[![NeoIsRecursive](https://avatars.githubusercontent.com/u/64473191?v=4)](https://github.com/NeoIsRecursive "NeoIsRecursive (10 commits)")

---

Tags

emojihacktoberfest

### Embed Badge

![Health badge](/badges/neoisrecursive-emojify/health.svg)

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

###  Alternatives

[ramsey/coding-standard

A common coding standard for Ramsey's PHP libraries.

1091.1k36](/packages/ramsey-coding-standard)

PHPackages © 2026

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