maymeow / php-fluentui-emoji
There is no license information available for the latest version (dev-main) of this package.
dev-main
2023-05-21 13:13 UTC
This package is auto-updated.
Last update: 2024-12-21 16:25:52 UTC
README
Library to use FluentUI Emojis with PHP application
composer require maymeow/php-fluentui-emoji
Copy src/Emojis.json
somewhere to your application. You will also need to put soewhere assets
folder from https://github.com/microsoft/fluentui-emoji
How to use
$text = 'Hello World! ๐๐๐ฅ๐ฅณ๐นโ๐ซโฒ๐คทโโ๏ธ๐ทโโ๏ธ๐ทโโ๏ธ๐๐ฎ๐พ๐จโ๐ฆฑ๐ฑโโ๏ธ๐ฉโ๐ฆณ๐ ๐ฎโโ๏ธ๐๐ ๐๐ญ๐ชโฎ๐๐ฅ๐ข'; $fluentEmojis = Emojis::init(SRC . '/Emojis.json'); file_put_contents('test.html', $fluentEmojis->replace($text));