2017 © Pedro Peláez
 

yii2-extension yii2-star-rating

Star rating widget based on jQuery Raty https://github.com/wbotelhos/raty

image

yii2mod/yii2-star-rating

Star rating widget based on jQuery Raty https://github.com/wbotelhos/raty

  • Wednesday, August 16, 2017
  • by disem
  • Repository
  • 3 Watchers
  • 11 Stars
  • 1,955 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 1 Open issues
  • 3 Versions
  • 38 % Grown

The README.md

, (*1)

Star Rating Widget for Yii 2


Star Rating widget based on Raty extension https://github.com/wbotelhos/raty, (*2)

Latest Stable Version Total Downloads License, (*3)

Installation

The preferred way to install this extension is through composer., (*4)

Either run, (*5)

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

or add, (*6)

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

to the require section of your composer.json., (*7)

Usage

Once the extension is installed, simply add widget to your page as follows:, (*8)

1) Usage with ActiveForm and model, (*9)

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

2) Usage without a model, (*10)

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, (*11)

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., (*12)

The Versions

16/08 2017

dev-master

9999999-dev

Star rating widget based on jQuery Raty https://github.com/wbotelhos/raty

  Sources   Download

MIT

The Requires

 

by Igor Chepurnoy

yii2 module

16/08 2017

1.1

1.1.0.0

Star rating widget based on jQuery Raty https://github.com/wbotelhos/raty

  Sources   Download

MIT

The Requires

 

by Igor Chepurnoy

yii2 module

21/03 2016

1.0

1.0.0.0

Star rating widget based on jQuery Raty https://github.com/wbotelhos/raty

  Sources   Download

MIT

The Requires

  • bower-asset/raty *

 

by Igor Chepurnoy

yii2 module