dereuromark / cakephp-ratings
Ratings Plugin for CakePHP.
Installs: 11 705
Dependents: 1
Suggesters: 0
Security: 0
Stars: 9
Watchers: 5
Forks: 4
Open Issues: 1
Type:cakephp-plugin
Requires
- php: >=8.1
- cakephp/cakephp: ^5.0.0
Requires (Dev)
- dereuromark/cakephp-shim: ^3.0.1
- fig-r/psr2r-sniffer: dev-master
- phpunit/phpunit: ^10.2
Suggests
- cakephp/migrations: For migrations to run.
README
The Ratings plugin will allow you by simply adding the ratings component to your controller to rate anything. The component will auto load a helper and behavior.
The core part of this plugin is the Ratable behavior that is attached to your models. In most cases you don't need to attach it yourself, because the Rating component will take care of it.
Note: This branch is for CakePHP 5.0+. For details see version map.
Recommended
To have a nice star rating to chose from, it ships with the possibility to include JS. The default JS tool in use is:
It should, however, be customizable to any other JS library and templating framework.
Demo
https://sandbox.dereuromark.de/sandbox/ratings
Documentation
For documentation, as well as tutorials, see the docs directory of this repository.
Support
For bugs and feature requests, please use the issues section of this repository.