PHP code example of zorinpavel / yii2-star-rating
1. Go to this page and download the library: Download zorinpavel/yii2-star-rating library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
zorinpavel / yii2-star-rating example snippets
use zorinpavel\StarRating\StarRatingWidget;
echo StarRatingWidget::widget([
'id' => 'feedback-id',
// name for the input field
'name' => 'feedback',
'value' => false,
// how many stars do you want
'stars' => 5,
// switch off user interaction
'disabled' => false,
// input field will be with