PHPackages                             dilden/yii2-feedback-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. dilden/yii2-feedback-widget

ActiveYii2-extension

dilden/yii2-feedback-widget
===========================

This Yii2 extension is intended to enable live feedback from users on a Yii2 web app by acting as a wrapper for the ivoviz/feedback plugin.

65273[1 issues](https://github.com/Dilden/Yii2-Feedback-Widget/issues)PHP

Since Nov 18Pushed 9y ago2 watchersCompare

[ Source](https://github.com/Dilden/Yii2-Feedback-Widget)[ Packagist](https://packagist.org/packages/dilden/yii2-feedback-widget)[ RSS](/packages/dilden-yii2-feedback-widget/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

Yii2 Feedback Widget
====================

[](#yii2-feedback-widget)

This Yii2 extension is intended to enable live feedback from users on a Yii2 web app by acting as a wrapper for the ivoviz/feedback js plugin.

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

[](#installation)

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

### Install

[](#install)

Either run

```
$ php composer.phar require dilden/yii2-feedback-widget "dev-master"

```

or add

```
"dilden/yii2-feedback-widget": "dev-master"

```

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

#### Alternative Install

[](#alternative-install)

Add

```
{
    "type": "git",
    "url": "https://github.com/Dilden/Yii2-Feedback-Widget"
}

```

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

Then add

```
"dilden/yii2-feedback-widget": "dev-master"

```

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

Usage
-----

[](#usage)

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

```

```

Configurable options can be found at the original project [Ivoviz/Feedback](https://github.com/ivoviz/feedback).

Controller
----------

[](#controller)

Setting up your controller to handle the AJAX response is simple enough. Simply set the ajaxURL parameter when declaring your widget (it is required for this widget to work). Create an action in your controller to accept the request. It could look something like this if you wanted to send an email.

```
namespace app\controllers;

use yii\web\Response;

class PinneappleController extends Controller
{

    public function actionFeedback()
    {
        // ajax validation
        if (Yii::$app->request->isAjax) {

            $data = json_decode($_POST['feedback']);

            $htmlMail = 'User Information  Browser Version: ' . $data->browser->appVersion
                    . 'User Agent: ' . $data->browser->userAgent.''
                    . 'Platform: ' . $data->browser->platform.''
                    . 'URL: ' . $data->url .''
                    . 'Note: ' . $data->note .'';

            // Send email with image attached as HTML file
            Yii::$app->mailer->compose()
                ->setFrom('EMAIL_ADDRESS_HERE@gmail.com')
                ->setTo('SEND_TO_ADDRESS_HERE@gmail.com')
                ->setSubject('SUBJECT_GOES_HERE')
                ->setHtmlBody($htmlMail)
                ->attachContent('', ['fileName' => 'screengrab.html', 'contentType' => 'text/html'])
                ->send();
            Yii::$app->response->format = Response::FORMAT_JSON;
            return $data;
        }
        return false;
    }
}
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.9% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/c2195e18f015e4e129259e30b86e37bb5d5bb475a49d57a6290d206767f97f49?d=identicon)[Dilden](/maintainers/Dilden)

---

Top Contributors

[![Dilden](https://avatars.githubusercontent.com/u/6046992?v=4)](https://github.com/Dilden "Dilden (29 commits)")[![AntoninSlejska](https://avatars.githubusercontent.com/u/833218?v=4)](https://github.com/AntoninSlejska "AntoninSlejska (4 commits)")

### Embed Badge

![Health badge](/badges/dilden-yii2-feedback-widget/health.svg)

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

PHPackages © 2026

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