Download the PHP package yaso/entity-rating-bundle without Composer
On this page you can find all versions of the php package yaso/entity-rating-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download yaso/entity-rating-bundle
More information about yaso/entity-rating-bundle
Files in yaso/entity-rating-bundle
Package entity-rating-bundle
Short Description Simplifying entities rating in symfony 4|3
License MIT
Homepage https://github.com/mohamedyasser/EntityRatingBundle
Informations about the package entity-rating-bundle
Entity Rating bundle
Installation
The easiest way is with Composer package manager
Register the bundle:
Import routes:
Configuration
Extending the abstract entity to create your own
Add the annotation to your entity class:
Configure the bundle:
Generate the rating form in the controller:
Display the form in the view:
Importing the assets
You can import them directly:
JS
CSS
Or use a task manager (gulp/grunt...) to minify/concat/uglify them before serving them.
Init the JS
Advanced usage
Adding a relationship to the Rate entity
Example: saving the logged user in the rate Entity
-
Add the user field to the entity
-
Extend the default manager to handle the User
- Define a new manager service to use in your controller
Events
The bundle dispatches events when a rate is :
- Created :
yaso.entity_rating.rate_created
- Updated :
yaso.entity_rating.rate_updated
All versions of entity-rating-bundle with dependencies
symfony/form Version ^2.8 || ^3.0 || ^4.0
symfony/framework-bundle Version ^2.8 || ^3.0 || ^4.0
symfony/security-bundle Version ^2.8 || ^3.0 || ^4.0
symfony/twig-bundle Version ^2.8 || ^3.0 || ^4.0
symfony/validator Version ^2.8 || ^3.0 || ^4.0
twig/twig Version ^1.28 || ^2.0
symfony/templating Version ^2.8 || ^3.0 || ^4.0
doctrine/orm Version >=2.0
friendsofsymfony/jsrouting-bundle Version *