panix/wgt-rating

Widget Rating

Installs: 136

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:pixelion-component

dev-main 2022-12-18 21:07 UTC

This package is auto-updated.

Last update: 2024-10-19 01:06:16 UTC


README

The Rating is a Yii2 wrapper for the [jQuery raty] (https://github.com/wbotelhos/raty)

Installation

The preferred way to install this extension is through composer.

Either run

php composer require --prefer-dist panix/wgt-rating "*"

or add

"panix/wgt-rating": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

<?php
use panix\ext\rating\RatingWidget;

echo RatingWidget::widget([
    'containerTag' => 'div',
    'containerOptions' => [
        'class' => 'container-class'
    ],
    'options' => [
           // https://github.com/wbotelhos/raty#options
    ]
]);
?>