<commit_before># LitEmoji 🔥

A PHP library simplifying the conversion of unicode, HTML and shortcode emoji.

## Installation

```
$ composer require elvanto/litemoji
```

Or add to `composer.json`:

```
"require": {
    "elvanto/litemoji": "^1.0.0"
}
```

and then run composer update.

Alternatively you can clone or download the library files.

## Usage

```php
echo LitEmoji::encodeShortCode('Baby you light my 🔥! 😃');
// 'Baby you light my :fire:! :smiley:'

echo LitEmoji::encodeHtml('Baby you light my :fire:! :smiley:');
// 'Baby you light my &#x1F525;! &#x1F603;'

echo LitEmoji::encodeHtml('Baby you light my :fire:! :smiley:');
// 'Baby you light my 🔥! 😃'
```

## TODO

- Add method for converting HTML entities to shortcodes.

## Contributing<commit_msg>Corrected unicode example in README.md<commit_after># LitEmoji 🔥

A PHP library simplifying the conversion of unicode, HTML and shortcode emoji.

## Installation

```
$ composer require elvanto/litemoji
```

Or add to `composer.json`:

```
"require": {
    "elvanto/litemoji": "^1.0.0"
}
```

and then run composer update.

Alternatively you can clone or download the library files.

## Usage

```php
use Elvanto\LitEmoji;

echo LitEmoji::encodeShortCode('Baby you light my 🔥! 😃');
// 'Baby you light my :fire:! :smiley:'

echo LitEmoji::encodeHtml('Baby you light my :fire:! :smiley:');
// 'Baby you light my &#x1F525;! &#x1F603;'

echo LitEmoji::encodeUnicode('Baby you light my :fire:! :smiley:');
// 'Baby you light my 🔥! 😃'
```

## TODO

- Add method for converting HTML entities to shortcodes.

## Contributing
{'fraction_non_alphanumeric': 0.15117014547754587, 'fraction_numerical': 0.013915243516761544, 'mean_word_length': 4.455172413793103, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1285169', 'n_tokens_mistral': 605, 'n_tokens_neox': 567, 'n_words': 187}