【文件属性】:
文件名称:简单的处理emoji的PHP类库.zip
文件大小:48KB
文件格式:ZIP
更新时间:2022-07-31 03:25:24
类库下载-简单的处理emoji的PHP类库
<?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-master
----src()
--------Index()
--------Emoji.php(4KB)
--------UnicodeUtil.php(1KB)
----phpunit.xml.dist(360B)
----.php_cs(499B)
----.travis.yml(136B)
----config()
--------index.json(81KB)
----LICENSE(1KB)
----README.md(775B)
----tests()
--------Index()
--------EmojiTest.php(2KB)
----.gitignore(55B)
----bin()
--------compile_index.php(3KB)
----composer.json(489B)