dereuromark/cakephp-reactions
Composer 安装命令:
composer require dereuromark/cakephp-reactions
包简介
A CakePHP plugin for emoji/named reactions on any model
README 文档
README
Reactions plugin for CakePHP applications.
This branch is for use with CakePHP 5.1+. For details see version map.
This is the multiple-reactions-per-entity companion to dereuromark/cakephp-favorites, which handles the single-opinion star/like/favorite use case. For ratings, use dereuromark/cakephp-ratings.
Each reaction row stores a string reaction key in the reaction column. That key can be
a literal emoji like 👍 or a named key like thumbsup. Set allowed if you want to
restrict the accepted set.
Features
- Polymorphic reactions for any CakePHP model.
- Multiple distinct reactions per user per record.
- Emoji literals (
👍) and named keys (thumbsup,rocket, ...). - Optional allow-listing for accepted reaction keys.
- Helper-rendered reaction widgets and count output.
- Controller and component integration strategies.
- Optional counter cache for fast list views.
- Admin listing, protected by an explicit access callback.
Installation
composer require dereuromark/cakephp-reactions
See the Docs for setup, examples, configuration, and troubleshooting.
统计信息
- 总下载量: 452
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-05-25