PHPackages                             shifrin/yii2-noty - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. shifrin/yii2-noty

AbandonedArchivedYii2-extension[Mail &amp; Notifications](/categories/mail)

shifrin/yii2-noty
=================

Yii widget for Noty jQuery notification plugin

v1.0.2(10y ago)518.9k↑23.5%4MITPHP

Since Jan 6Pushed 10y ago1 watchersCompare

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

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

yii2-noty
=========

[](#yii2-noty)

Yii2 widget for Noty jQuery notification plugin, [Visit Noty](http://ned.im/noty/#/about)

> For Yii1: Please check [yii-noty](https://github.com/Shifrin/yii-noty)

Installation:
-------------

[](#installation)

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

> Note: The instructions below refer to the global composer installation. You might need to replace `composer` with php `composer.phar` (or similar) for your setup.

Direct install:

```
composer require shifrin/yii2-noty

```

or add it manually to the `composer.json` and update `composer`

```
"shifrin/yii2-noty": "1.0.*",

```

```
composer update

```

Usage Details:
--------------

[](#usage-details)

Add the widget in your main layout file like below,

```

```

This widget will create a JS function `Noty()`, so it will be available globally and you can call this function in your custom JS codes. See the following example below

```
var n = Noty('id');
$.noty.setText(n.options.id, 'Welcome to our site!');
$.noty.setType(n.options.id, 'information');
```

You can set the flash messages like this in your controller or anywhere you need. However, if you set `enableSessionFlash` to `false` it won't be affected.

```
\Yii::$app->session->setFlash('type', 'Message here');
```

Replace `type` with available types

### Available Types:

[](#available-types)

- success
- error
- warning
- information
- alert

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

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

###  Release Activity

Cadence

Every ~15 days

Total

4

Last Release

3740d ago

Major Versions

v0.1-alpha → v1.02016-01-10

### Community

Maintainers

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

---

Top Contributors

[![Shifrin](https://avatars.githubusercontent.com/u/7717399?v=4)](https://github.com/Shifrin "Shifrin (16 commits)")[![izemize](https://avatars.githubusercontent.com/u/1323246?v=4)](https://github.com/izemize "izemize (2 commits)")

---

Tags

messagenotificationyii2flashalertnoty

### Embed Badge

![Health badge](/badges/shifrin-yii2-noty/health.svg)

```
[![Health](https://phpackages.com/badges/shifrin-yii2-noty/health.svg)](https://phpackages.com/packages/shifrin-yii2-noty)
```

###  Alternatives

[loveorigami/yii2-notification-wrapper

This module for renders a message from session flash (with ajax, pjax support and etc.)

77199.7k5](/packages/loveorigami-yii2-notification-wrapper)[kartik-v/yii2-widget-alert

A widget to generate alert based notifications using bootstrap-alert plugin (sub repo split from yii2-widgets)

284.1M24](/packages/kartik-v-yii2-widget-alert)[kartik-v/yii2-widget-growl

A widget to generate growl based notifications using bootstrap-growl plugin (sub repo split from yii2-widgets)

384.2M14](/packages/kartik-v-yii2-widget-growl)[ras/flash-alert-bundle

FlashAlertBundle provides a simplified way to handle (add/display) Symfony flash messages. Client side scripts are written in pure JavaScript.

2423.3k](/packages/ras-flash-alert-bundle)[bpocallaghan/alert

A helper package to flash a bootstrap alert to the browser.

1819.6k3](/packages/bpocallaghan-alert)[diecoding/yii2-toastr

Simple flash toastr notifications for Yii2

1328.8k](/packages/diecoding-yii2-toastr)

PHPackages © 2026

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