yii2mod/yii2-star-rating Star rating widget based on jQuery Raty https://github.com/wbotelhos/raty

module

993323

Star Rating Widget for Yii 2


Star Rating widget based on Raty extension https://github.com/wbotelhos/raty

Latest Stable Version Total Downloads License

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist yii2mod/yii2-star-rating "*"

or add

"yii2mod/yii2-star-rating": "*"

to the require section of your composer.json.

Usage

Once the extension is installed, simply add widget to your page as follows:

1) Usage with ActiveForm and model

echo $form->field($model, 'attribute')->widget(\yii2mod\rating\StarRating::class, [
    'options' => [
        // Your additional tag options
    ],
    'clientOptions' => [
        // Your client options
    ],
]);

2) Usage without a model

echo \yii2mod\rating\StarRating::widget([
    'name' => 'input_name',
    'value' => 5,
    'clientOptions' => [
       // Your client options
    ],
 ]);

Star Rating Options

You can find them on the options page

Support us

Does your business depend on our contributions? Reach out and support us on Patreon. All pledges will be dedicated to allocating workforce on maintenance and new awesome stuff.

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

  • 1.227 August 2018
  • 1.116 August 2017
  • 1.021 March 2016

Comments



1.2 is the latest of 3 releases



MIT license
Stats
18 github stars & 3 github forks
1 downloads in the last day
124 downloads in the last 30 days
13990 total downloads