PHPackages                             guanting112/php-remove-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. guanting112/php-remove-emoji

ActiveLibrary

guanting112/php-remove-emoji
============================

A PHP library to remove emojis from strings.

v1.1.0(3mo ago)15MITPHPPHP &gt;=8.0CI passing

Since Jan 30Pushed 3mo agoCompare

[ Source](https://github.com/guanting112/php-remove-emoji)[ Packagist](https://packagist.org/packages/guanting112/php-remove-emoji)[ RSS](/packages/guanting112-php-remove-emoji/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

PHP Remove Emoji
================

[](#php-remove-emoji)

[![PHP Test](https://github.com/guanting112/php-remove-emoji/actions/workflows/php.yml/badge.svg)](https://github.com/guanting112/php-remove-emoji/actions/workflows/php.yml)[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)

Remove Emoji for PHP / Laravel 😈🈲, This is a PHP library developed for "removing" Unicode Emoji icons, you can use this library to remove annoying Emoji symbols.

[![emoji](https://camo.githubusercontent.com/cec77b78d71ab0cb63978835d5ef716e90d5739cc9b788e16d5d2603af197833/68747470733a2f2f692e696d6775722e636f6d2f346d6f773650662e706e67)](https://camo.githubusercontent.com/cec77b78d71ab0cb63978835d5ef716e90d5739cc9b788e16d5d2603af197833/68747470733a2f2f692e696d6775722e636f6d2f346d6f773650662e706e67)

- [for Ruby](https://github.com/guanting112/remove_emoji)
- [for Golang](https://github.com/guanting112/go-remove-emoji)

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

[](#installation)

```
composer require guanting112/php-remove-emoji
```

Usage
-----

[](#usage)

```
require 'vendor/autoload.php';

use RemoveEmoji\RemoveEmoji;

$original_string = "😊😍😌🤕👿👹🍏🍐🍑🍒🍓🍔🍕🍖🍗👌☝🏼🥝🥦🌶🌽🍎";

echo RemoveEmoji::remove($original_string);
```

```
require 'vendor/autoload.php';

use RemoveEmoji\RemoveEmoji;

# ==========
#   Input
# ==========
$original_string =
