Download the PHP package nurikabe/star-rating-bundle without Composer
On this page you can find all versions of the php package nurikabe/star-rating-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nurikabe/star-rating-bundle
More information about nurikabe/star-rating-bundle
Files in nurikabe/star-rating-bundle
Package star-rating-bundle
Short Description Symfony form type and Twig extension for quick integration of FyneWorks' Star Rating widget
License MIT
Homepage http://github.com/nurikabe/StarRatingBundle
Rated 3.67 based on 3 reviews
Informations about the package star-rating-bundle
NurikabeStarRatingBundle
Form type and Twig filter for FyneWorks' super fine jQuery Star Rating Plugin.
Installation
Manually add a repository for the Star Rating Plugin
This is the easiest way to ensure that you have the Star Rating Plugin installed. Add a repository to
composer.json
:
Add the library and bundle to your dependencies
Register the bundle in your kernel
Update your packages
If you define a repository for fyneworks/star-rating
as per the above then installing nurikabe/star-rating-bundle
should also install the fyneworks/star-rating
dependency.
Usage
Load the Star Rating plugin in your layout. For example, if you are using Assetic and you have installed Star Rating via Composer as per above:
Of course, remember to dump your assets if use_controller
is off:
This bundle contains a new FormType star_rating
field type:
star_rating
extends choice
and will render expanded choice
fields as a Star Rating field.
Original choice
field:
As a star_rating
field:
A Twig filter is also available that will render a static Star Rating widget given a numeric input: