dereuromark / cakephp-reactions
A CakePHP plugin for emoji/named reactions on any model
Package info
github.com/dereuromark/cakephp-reactions
Type:cakephp-plugin
pkg:composer/dereuromark/cakephp-reactions
Requires
- php: >=8.2
- cakephp/cakephp: ^5.1.1
Requires (Dev)
- cakephp/migrations: ^5.0.0
- fig-r/psr2r-sniffer: dev-master
- phpunit/phpunit: ^11.5 || ^12.1 || ^13.0
Conflicts
- cakephp/migrations: <4.5
This package is auto-updated.
Last update: 2026-06-08 03:10:09 UTC
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.