karelwintersky/arris.toolkit.emoji-finder
最新稳定版本:0.1.0
Composer 安装命令:
composer require karelwintersky/arris.toolkit.emoji-finder
包简介
A PHP emoji search engine optimized for search-as-you-type experience
README 文档
README
A PHP emoji search engine optimized for search-as-you-type experience
Based on https://github.com/xitanggg/emoogle-emoji-search-engine Vibecoded by Deepseek
Usage
<?php require_once __DIR__ . '/vendor/autoload.php'; use Arris\Toolkit\EmojiFinder\EmojiFinder; // Initialize with data directory EmojiFinder::init(__DIR__ . '/data'); // Basic usage $result = EmojiFinder::search('amazing'); // => ['🤩', '💯', '🙌', '🌈'] var_dump($result); // With max limit $result = EmojiFinder::search('amazing', 2); // => ['🤩', '💯'] var_dump($result); // Personalize with custom emoji keywords $result = EmojiFinder::search('amazing', 24, [ 'customEmojiKeywords' => [ '🏆' => ['amazing'], ], ]); // => ['🤩', '💯', '🙌', '🌈', '🏆'] var_dump($result); // Personalize with user preferred keyword to emoji $result = EmojiFinder::search('amazing', 24, [ 'customKeywordMostRelevantEmoji' => [ 'amazing' => '💯', ], ]); // => ['💯', '🤩', '🙌', '🌈'] var_dump($result); // Personalize with user recently searched inputs $result = EmojiFinder::search('h', 4, [ 'recentlySearchedInputs' => ['hello'], ]); // => ['👋', '🫂', '🤝', '🙏'] var_dump($result); // Search for best match $result = EmojiFinder::searchBestMatching('hello world', 4); // => ['👋', '🫂', '🌍', '🌎'] var_dump($result);
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 9
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-05-07