PHPackages                             alfa6661/yii2-raty - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. alfa6661/yii2-raty

ActiveYii2-extension[Templating &amp; Views](/categories/templating)

alfa6661/yii2-raty
==================

Yii2 wrapper for jQuery Raty plugin

1.0(10y ago)92.6kApache-2.0JavaScript

Since Aug 18Pushed 8y ago3 watchersCompare

[ Source](https://github.com/alfa6661/yii2-raty)[ Packagist](https://packagist.org/packages/alfa6661/yii2-raty)[ RSS](/packages/alfa6661-yii2-raty/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

yii2-raty
=========

[](#yii2-raty)

[![StyleCI](https://camo.githubusercontent.com/1a2175bfa018ed609829a01704ceb51adbec66b01e2f769a2f1db9bf8790e529/68747470733a2f2f7374796c6563692e696f2f7265706f732f33373132303736322f736869656c643f7374796c653d666c6174)](https://styleci.io/repos/37120762)[![Total Downloads](https://camo.githubusercontent.com/55a4cee2ffa9bc53326068422a57068d378181c088b2727d78780f74f99bccfa/68747470733a2f2f706f7365722e707567782e6f72672f616c6661363636312f796969322d726174792f646f776e6c6f616473)](https://packagist.org/packages/alfa6661/yii2-raty)[![Latest Stable Version](https://camo.githubusercontent.com/2890173958229533b5344500935a6d93fa9721d62f0720d8047163baf3d22e04/68747470733a2f2f706f7365722e707567782e6f72672f616c6661363636312f796969322d726174792f762f737461626c65)](https://packagist.org/packages/alfa6661/yii2-raty)[![Latest Unstable Version](https://camo.githubusercontent.com/5d840937db39a1b4b11d34d221d29fb46a33b902d473df834664d2f8a997002f/68747470733a2f2f706f7365722e707567782e6f72672f616c6661363636312f796969322d726174792f762f756e737461626c65)](https://packagist.org/packages/alfa6661/yii2-raty)[![License](https://camo.githubusercontent.com/ec8768540e5e8292217f42cdb2cac5186539ed98c29ed3dc5ed1762ba202ef19/68747470733a2f2f706f7365722e707567782e6f72672f616c6661363636312f796969322d726174792f6c6963656e7365)](https://packagist.org/packages/alfa6661/yii2-raty)

Yii2-raty is a wrapper for [jQuery Raty plugin](http://wbotelhos.com/raty). jQuery Raty is a plugin that generates a customizable star rating automatically.

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist alfa6661/yii2-raty "*"

```

or add

```
"alfa6661/yii2-raty": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

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

```
// Usage

// Usage with model

// Usage with ActiveForm and model
