定制 dereuromark/cakephp-favorites 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

dereuromark/cakephp-favorites

最新稳定版本:0.1.3

Composer 安装命令:

composer require dereuromark/cakephp-favorites

包简介

CakePHP Favorites Plugin

README 文档

README

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

Favorites plugin for CakePHP applications.

This branch is for use with CakePHP 5.1+. For details see version map.

Motivation

The old Favorites plugins don't seem to be supported anymore:

This plugin aims to merge and revive them as modern CakePHP 5.x plugin. Hopefully we can have all the features back up and working soon.

Features

"Favorites" lets people express how they feel about some content. Make any model reactable in a minutes!

There are many implementations in modern applications:

  • Starred a.k.a GitHub stars (and remove star)
  • GitHub Reactions
  • Facebook Reactions
  • YouTube Likes
  • Slack Reactions
  • Reddit Votes
  • Medium Claps

This package so far mainly supports basic reactions per entity in 3 different types:

  • star (yes/no)
  • like (upvote/downvote/none)
  • favorite (custom enum list)

But it could be developed in mind that it should cover all the possible use cases and be viable in enterprise applications including multiple reactions per entity. Help is appreciated.

A "counter-cache" field can be put on the starred record itself, to more easily count the "stars" without having to calculate it at runtime.

For ratings (e.g. 1-5 star range) use https://github.com/dereuromark/cakephp-ratings instead.

Install, Setup, Usage

See the Docs for details.

Demo

See https://sandbox.dereuromark.de/sandbox/favorite-examples

统计信息

  • 总下载量: 3.81k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-03-31