PHPackages                             yii2mod/yii2-star-rating - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. yii2mod/yii2-star-rating

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

yii2mod/yii2-star-rating
========================

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

1.2(7y ago)1815.4k3MITPHP

Since Mar 21Pushed 6y ago3 watchersCompare

[ Source](https://github.com/yii2mod/yii2-star-rating)[ Packagist](https://packagist.org/packages/yii2mod/yii2-star-rating)[ RSS](/packages/yii2mod-yii2-star-rating/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

 [ ![](https://avatars0.githubusercontent.com/u/993323) ](https://github.com/yiisoft)

Star Rating Widget for Yii 2
============================

[](#star-rating-widget-for-yii-2)

Star Rating widget based on Raty extension

[![Latest Stable Version](https://camo.githubusercontent.com/b260581e22edfb4478edc2fd34a711d186b2757b3a83308c95dcfed410b47a5a/68747470733a2f2f706f7365722e707567782e6f72672f796969326d6f642f796969322d737461722d726174696e672f762f737461626c65)](https://packagist.org/packages/yii2mod/yii2-star-rating) [![Total Downloads](https://camo.githubusercontent.com/2e8eae17f9bb0a4896a33402eca831234d5fd346d820f7478d8118aac8ca47a7/68747470733a2f2f706f7365722e707567782e6f72672f796969326d6f642f796969322d737461722d726174696e672f646f776e6c6f616473)](https://packagist.org/packages/yii2mod/yii2-star-rating) [![License](https://camo.githubusercontent.com/cb3ac8c6992171830fe38b922eca8073648a463903d4c796f38f01969c7911e3/68747470733a2f2f706f7365722e707567782e6f72672f796969326d6f642f796969322d737461722d726174696e672f6c6963656e7365)](https://packagist.org/packages/yii2mod/yii2-star-rating)

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

[](#installation)

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

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
-----

[](#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
-------------------

[](#star-rating-options)

You can find them on the [options page](https://github.com/wbotelhos/raty#options)

Support us
----------

[](#support-us)

Does your business depend on our contributions? Reach out and support us on [Patreon](https://www.patreon.com/yii2mod). All pledges will be dedicated to allocating workforce on maintenance and new awesome stuff.

###  Health Score

36

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~444 days

Total

3

Last Release

2764d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1a53a15e1548ce60ee92591e71492a39eaaecfc88eaa1a9d7f353d5c910381de?d=identicon)[disem](/maintainers/disem)

---

Top Contributors

[![Bhoft](https://avatars.githubusercontent.com/u/1777147?v=4)](https://github.com/Bhoft "Bhoft (2 commits)")[![rustamwin](https://avatars.githubusercontent.com/u/16498265?v=4)](https://github.com/rustamwin "rustamwin (1 commits)")

---

Tags

yii2yii2-extensionyii2-ratingyii2-star-ratingyii2module

### Embed Badge

![Health badge](/badges/yii2mod-yii2-star-rating/health.svg)

```
[![Health](https://phpackages.com/badges/yii2mod-yii2-star-rating/health.svg)](https://phpackages.com/packages/yii2mod-yii2-star-rating)
```

###  Alternatives

[branchonline/yii2-lightbox

Lightbox widget for Yii2

13137.8k1](/packages/branchonline-yii2-lightbox)[akiraz2/yii2-ticket-support

Yii2 Support Ticket Module, easy, flexible, fast

601.7k](/packages/akiraz2-yii2-ticket-support)[corpsepk/yii2-yandex-market-yml

Yii2 module for automatically generation Yandex.Market YML

169.8k](/packages/corpsepk-yii2-yandex-market-yml)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
