dereuromark/cakephp-reactions

A CakePHP plugin for emoji/named reactions on any model

Maintainers

Package info

github.com/dereuromark/cakephp-reactions

Homepage

Type:cakephp-plugin

pkg:composer/dereuromark/cakephp-reactions

Statistics

Installs: 452

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 1

dev-master / 0.x-dev 2026-05-30 21:26 UTC

This package is auto-updated.

Last update: 2026-06-08 03:10:09 UTC


README

CI Coverage Status PHPStan Latest Stable Version Minimum PHP Version License Total Downloads Coding Standards

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.