PHPackages                             bupy7/yii2-snotify - 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. bupy7/yii2-snotify

AbandonedArchivedYii2-extension

bupy7/yii2-snotify
==================

Snotify is extension implements at server-side notification to the user without client-side.

3582PHP

Since Feb 8Pushed 10y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-snotify
============

[](#yii2-snotify)

Snotify is extension implements at server-side notification to the user without client-side.

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist bupy7/yii2-snotify "*"

```

or add

```
"bupy7/yii2-snotify": "*"

```

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

Usage
-----

[](#usage)

Register module to `modules` section in config file:

```
[
    'modules' => [
        ...

        'snotifymodule' => [
            'class' => 'bupy7\notify\ss\Module',
        ],

        ...
    ],
],
```

Add `snotifymodule` to `bootstrap` section in config file:

```
[
    'bootstrap' => [
        ...

        'snotifymodule',

        ...
    ],
],
```

Register manager of snotify to `components` section in config file:

```
[
    'components' => [
        ...

        'snotify' => [
            'class' => 'bupy7\notify\ss\components\Manager',
        ],

        ...
    ],
],
```

> You can rename a component and a module how do you like.

Run migration:

```
php ./yii migrate/up --migrationPath=@bupy7/notify/ss/migrations

```

Adding notification message:

```
$userId = Yii::$app->user->id;
$body = 'Example of text message';
$title = 'Example of title message';
Yii::$app->snotify
    // success notify type
    ->addSuccess($userId, $body, $title)
    // danger notify type
    ->addDanger($userId, $body, $title)
    // info notify type
    ->addInfo($userId, $body, $title)
    // warning notify type
    ->addWarning($userid, $body, $title);
```

Profit! Your notification added to {{%notification}} table.

Configuration
-------------

[](#configuration)

Module:

```
[
    'modules' => [
        ...

        'snotifymodule' => [
            'class' => 'bupy7\notify\ss\Module',
            'tableName' => '{{%notification}}', // table name with notification messages
            'db' => 'db', // database connection component config or name
        ],

        ...
    ],
],
```

License
-------

[](#license)

yii2-snotify is released under the BSD 3-Clause License.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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/f2f9ee20b742a44db8870955cd27b91bb82c14e08dd61a4e096692c9d9d83302?d=identicon)[bupy7](/maintainers/bupy7)

---

Top Contributors

[![bupy7](https://avatars.githubusercontent.com/u/5145037?v=4)](https://github.com/bupy7 "bupy7 (21 commits)")

### Embed Badge

![Health badge](/badges/bupy7-yii2-snotify/health.svg)

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

PHPackages © 2026

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