PHPackages                             ijackua/yii2-kudos-widget - 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. ijackua/yii2-kudos-widget

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

ijackua/yii2-kudos-widget
=========================

Yii2 widget for Svbtle style Kudos. Based on JS from https://github.com/masukomi/kudos

1.0.0(12y ago)535[1 issues](https://github.com/iJackUA/yii2-kudos-widget/issues)MITCSS

Since Mar 11Pushed 10y ago1 watchersCompare

[ Source](https://github.com/iJackUA/yii2-kudos-widget)[ Packagist](https://packagist.org/packages/ijackua/yii2-kudos-widget)[ Docs](https://github.com/iJackUA/yii2-kudos-widget)[ RSS](/packages/ijackua-yii2-kudos-widget/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

yii2-kudos-widget
=================

[](#yii2-kudos-widget)

Yii2 widget for Svbtle style Kudos. Based on JS from

Demo
----

[](#demo)

On [posts details page of my blog](http://stdout.in) or original JS widget [demo](http://masukomi.github.com/kudos/)

Usage example
-------------

[](#usage-example)

```
	Kudos::widget(
		[
			'widgetId' => 'post',  // unique id of widget on page, to allow more than one widget on the page
			'uid' => $post->id,  // uid of Kudoable element, for stat count
			'count' => $post->kudos, // initial Kudos value, to display
			'onAdded' => 'function (event) {
		// JS callback on Kudo +1 , you can do what ever you want here
		// for example send AJAX request to track stats
		var uid = $(this).data("uid");
		$.post("/kudo/plus/post/" + uid);}',
			'onRemoved' => 'function (event) {
		// JS callback on Kudo -1, send another AJAX request to track stats
		var uid = $(this).data("uid");
		$.post("/kudo/minus/post/" + uid);}',
		]);
```

Tracking and stat storage server side you should implement yourself what ever you want.

### localStorage

[](#localstorage)

is used to keep widget state for each user personally. It uses `widgetId|uid` key to be unique for multiple widgets on the site. And does not pollute request Headers with extra Cookies (if someone Kuoded a lot of your pages).

Events
------

[](#events)

- `onActive` is sent when you hover over the object (the circle is growing)
- `onInactive` is sent when you mouse-off the object
- `onAdded` is sent when you successfully kudo something
- `onRemoved` is sent when you un-kudo something

Advanced usage with custom icons inside widget
----------------------------------------------

[](#advanced-usage-with-custom-icons-inside-widget)

I am using font-smiley from Custom icon-font should be prepared and connected to the page, then you can adjust smiley look and feel via CSS and add them inside Kudos widget like this

```
	Kudos::widget(
		[
			'widgetId' => 'post',
			'uid' => $post->id,
			'count' => $post->kudos,
			'defaultClass' => 'icon icon-emo-thumbsup',
			'onAdded' => 'function (event) {
		var uid = $(this).data("uid");
		$(this).find(".icon").removeClass("icon-emo-thumbsup").addClass("icon-emo-beer");
		$.post("/kudo/plus/post/" + uid);}',
			'onRemoved' => 'function (event) {
		var uid = $(this).data("uid");
		$(this).find(".icon").removeClass("icon-emo-beer").addClass("icon-emo-thumbsup");
		$.post("/kudo/minus/post/" + uid);}',
		]);
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity63

Established project with proven stability

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

Unknown

Total

1

Last Release

4447d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/568566?v=4)[Yevhen Kuzminov](/maintainers/iJackUA)[@iJackUA](https://github.com/iJackUA)

---

Tags

extensionwidgetyiilikekudos

### Embed Badge

![Health badge](/badges/ijackua-yii2-kudos-widget/health.svg)

```
[![Health](https://phpackages.com/badges/ijackua-yii2-kudos-widget/health.svg)](https://phpackages.com/packages/ijackua-yii2-kudos-widget)
```

###  Alternatives

[evgeniyrru/yii2-slick

Yii2 extension for Slick Carousel

22182.1k3](/packages/evgeniyrru-yii2-slick)[romka-chev/yii2-swiper

Yii2 extension for Swiper slider

1840.6k](/packages/romka-chev-yii2-swiper)[sjaakp/yii2-alphapager

Page data on initial character in Yii2.

184.4k](/packages/sjaakp-yii2-alphapager)

PHPackages © 2026

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