Download the PHP package blackknight467/star-rating-bundle without Composer
On this page you can find all versions of the php package blackknight467/star-rating-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download blackknight467/star-rating-bundle
More information about blackknight467/star-rating-bundle
Files in blackknight467/star-rating-bundle
Package star-rating-bundle
Short Description Star Rating Bundle for use with Symfony 2 using Font Awesome. This bundle adds the 'rating' form type and rating filter to render ratings. Simple and easy to use.
License MIT
Homepage http://github.com/blackknight467/StarRatingBundle
Rated 3.80 based on 5 reviews
Informations about the package star-rating-bundle
StarRatingBundle
Star Rating Bundle for Symfony 3. Requires Jquery and Font Awesome.
If Using Symfony 2. Use version 1.*
Sample Output
Installation
Step 1: Download the StarRatingBundle
Using Composer
Add the following to the "require" section of your composer.json
file:
Step 2: Enable the bundle
Enable the bundle in the kernel:
Step 3: Add the css
Add the css in your page head
or
Step 4: Add the js
Add the javascript to your page head
or
Usage
In a Form
or for a custom rating scale:
Display in a twig template using the rating filter
or if you are not using a 5 star scale
if you want to use the font awesome icon sizes
If you want the smallest size use "fa-norm" (in font awesome, this would be the same as not providing an size class); providing no size argument sets the font size to 25px which is somewhere in between "fa-lg" and "fa-2x". To customize the size, feel free to override the css.
License
This bundle is under the MIT license. See the complete license in the bundle: LICENSE