How aksafan/yii2-emoji-detection works
This is a small Yii2 extension exposing aaronpk’s emoji-detection tools through a Yii-style EmojiDetector API. The main workflow is application code invoking the detector, which delegates detection to EmojiWrapper, then to the upstream PHP library. The detector also exposes extraction, replacement, counting, boolean checks, the emoji map, and the detection regexp. The sampled source shows the delegation and dependency calls; the README documents Yii configuration and the public capabilities.
Main entry points: EmojiDetector.php Emoji detector API · EmojiWrapper.php Emoji wrapper
Components 4
Yii API
- Emoji detector API
source/EmojiDetector.php
Detection Bridge
- Emoji wrapper
source/EmojiWrapper.php - Emoji detector library
Other components
- Yii application code
Connections 3
- Yii application code → Emoji detector API: invokes
README.md - Emoji detector API → Emoji wrapper: delegates
source/EmojiDetector.php - Emoji wrapper → Emoji detector library: calls
source/EmojiWrapper.php