简单的处理emoji的PHP类库

2017-12-13 10:55:0349730查看评论(0)
简介:

<?php
require_once __DIR__.'/../vendor/autoload.php';
use HeyUpdate\Emoji\UnicodeUtil;
$configFile = __DIR__.'/../config/index.json';
$template = <<<'TEMPLATE'
<?php
TEMPLATE;
if (!is_file($configFile)) {
    throw new InvalidArgumentException(sprintf('The emoji config file "%s" does not exist', $configFile));
}
$emojis = json_decode(file_get_contents($configFile), true);
if ($emojis === false) {
    throw new InvalidArgumentException(sprintf('Unable to parse the emoji config file "%s"', $configFile));
}


简单的处理emoji的PHP类库

申明:本站所有资源都是转载各大下载站,或由网友投稿发布,请自行检测软件的完整性,如有侵权请联系我们删除下架,联系方式:admin@php.cn

网页评论
最新评论