Skip to content
微信消息中默认表情图片与对应字符相互替换
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Emoji.php
LICENSE
README.md
composer.json

README.md

boofw/weixin-emoji-php

微信消息中默认表情图片与对应字符相互替换

Installation

With composer :

{
    ...
    "require": {
        "boofw/weixin-emoji-php": "~1.0"
    }
}

or

composer require boofw/weixin-emoji-php:~1.0

Usage

将微信消息中的表情字符(如 /::), /::D 等)替换为相应表情图片

<?php

use Boofw\Weixin\Emoji\Emoji;

$content = Emoji::render($content);
You can’t perform that action at this time.