PHPackages                             stichoza/phemoji - 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. stichoza/phemoji

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

stichoza/phemoji
================

PHP Emoji functions and stuff.

v0.1.1(10y ago)33232MITPHPPHP &gt;=5.5.0CI failing

Since Nov 28Pushed 10y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (3)Used By (0)

Phemoji
=======

[](#phemoji)

[![](https://camo.githubusercontent.com/83c613375d7e901a596730b21c08deae259665aa99b6df474f3266798ff2784b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6275696c642d2546302539462539312538442d3434636331312e737667)](https://camo.githubusercontent.com/83c613375d7e901a596730b21c08deae259665aa99b6df474f3266798ff2784b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6275696c642d2546302539462539312538442d3434636331312e737667) [![Latest Stable Version](https://camo.githubusercontent.com/b439319f5149fd396d1edd6fc02276761cef5a7ecb96e5cbe1ca0363dea6875d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f53746963686f7a612f7068656d6f6a692e737667)](https://packagist.org/packages/stichoza/phemoji) [![Total Downloads](https://camo.githubusercontent.com/ab46262fd959822876ac5432a583a1dd94b73282a9fcdf751d8d0224d8f3fed2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f53746963686f7a612f7068656d6f6a692e737667)](https://packagist.org/packages/stichoza/phemoji) [![Downloads Month](https://camo.githubusercontent.com/ff7156e7750fd9502b4cb0f3d9f3c6f6a113922d7cb6a864cbd2680cf0d01d80/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f53746963686f7a612f7068656d6f6a692e737667)](https://packagist.org/packages/stichoza/phemoji)

Emojis in PHP 🐘

Have you ever envied Swift having possibility to [use emojis](http://www.globalnerdy.com/2014/06/03/swift-fun-fact-1-you-can-use-emoji-characters-in-variable-constant-function-and-class-names/) in code? Well, you can use it in PHP too. I mean, it was possible for years. *\*Shots fired\** 💥 🔫

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

[](#installation)

Install this package via [Composer](https://getcomposer.org/).

```
composer require stichoza/phemoji

```

Usage
-----

[](#usage)

### Getting Started

[](#getting-started)

After you have installed the package, you can just call `Phemoji::init()` and you're good to go!

```
\Stichoza\Phemoji\Phemoji::init();
```

**or**

```
namespace App\Http\Controlers\Blabla;

// ...

use Stichoza\Phemoji\Phemoji;

// ...

Phemoji::init();
```

> **Note:** This will define some constants and functions in global scope. Once called it will be available everywhere. If you're using any PHP framework, it would be more convinient if you call this method somewhere in middleware or routes or any other place you prefer.

### Use of emojis

[](#use-of-emojis)

I have not written full docs yet. You can read the source code and you'll get everything what's going on here.

Example:

With PhemojiEquivalent PHP✏️(🔠("Hello World!"));`printf(strtoupper("Hello World!"));`📄("file.txt");`file_get_contents("file.txt");`📅('Y-m-d', ⏰() + 🎰(1000, 2000));`date('Y-m-d', time() + rand(1000, 2000));`💩(💣('a', 'Katana!!!'));`var_dump(explode('a', 'Katana!!!'));`$x = 👍;`$x = true;`And so on. Take a look at full list in the source of [Phemoji.php](https://github.com/Stichoza/phemoji/blob/master/src/Stichoza/Phemoji/Phemoji.php)

Disclaimer
----------

[](#disclaimer)

This package is created just for fun. I am not responsible if any emoji from this package will burn your house to the ground or murder your cute little kitten. Btw, if it ever kills a cat, notify me and I'll remove this repo from Github. I mean Octocat is also a cat.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

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

2

Last Release

3816d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9479216097dd0cf64d159b250bea5ee74706fd929576d442d05c3326f0313b07?d=identicon)[stichoza](/maintainers/stichoza)

---

Top Contributors

[![Stichoza](https://avatars.githubusercontent.com/u/1139050?v=4)](https://github.com/Stichoza "Stichoza (23 commits)")

---

Tags

phphelpersfunctionsemojiemoticonsutilites

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/stichoza-phemoji/health.svg)

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

###  Alternatives

[transprime-research/piper

PHP Pipe method execution with values from chained method executions

174.6k2](/packages/transprime-research-piper)

PHPackages © 2026

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