maymeow / php-fluentui-emoji
此包最新版本(dev-main)没有提供许可信息。
dev-main
2023-05-21 13:13 UTC
This package is auto-updated.
Last update: 2024-09-21 15:53:30 UTC
README
用于在PHP应用程序中使用FluentUI表情的库
composer require maymeow/php-fluentui-emoji
将 src/Emojis.json
复制到您的应用程序的某个位置。您还需要将 https://github.com/microsoft/fluentui-emoji 的 assets
文件夹放到某个位置
使用方法
$text = 'Hello World! 💜😁🥚🥳🐹❓🛫⏲🤷♀️👷♀️👷♀️🔐🎮👾👨🦱👱♀️👩🦳🎅👮♀️🚞🚅🏚🏭🪑☮🕉💥💢'; $fluentEmojis = Emojis::init(SRC . '/Emojis.json'); file_put_contents('test.html', $fluentEmojis->replace($text));