PHPackages                             izemize/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. izemize/yii2-noty

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

izemize/yii2-noty
=================

Yii widget for Noty jQuery notification plugin

v1.0.1(10y ago)11MITPHP

Since Jan 6Pushed 10y agoCompare

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

READMEChangelogDependencies (2)Versions (6)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 1.0.1

```

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

```
"shifrin/yii2-noty": "1.0.1",

```

```
composer update

```

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

[](#usage-details)

Add the widget in your main layout file like below,

```
\shifrin\noty\NotyWidget::widget([
  'options' => [ // you can add js options here, see noty plugin page for available options
    'dismissQueue' => true,
    'layout' => 'topCenter',
    'theme' => 'relax',
    'animation' => [
      'open' => 'animated flipInX',
      'close' => 'animated flipOutX',
    ],
    'timeout' => false
  ],
  'enableSessionFlash' => true
  'enableIcon' => true,
  'registerAnimateCss' => true,
  'registerButtonsCss' => true,
  'registerFontAwesomeCss' => true,
]);

```

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

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 78.6% 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 ~2 days

Total

3

Last Release

3775d ago

Major Versions

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

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

messagenotificationyii2flashalertnoty

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/izemize-yii2-noty/health.svg)](https://phpackages.com/packages/izemize-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)
