PHPackages                             flextype-components/notification - 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. flextype-components/notification

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

flextype-components/notification
================================

Notification component for storing and retrieving flash data.

v1.0.2(7y ago)0821MITPHPPHP ^7.1.3

Since Apr 19Pushed 7y ago1 watchersCompare

[ Source](https://github.com/flextype-components/notification)[ Packagist](https://packagist.org/packages/flextype-components/notification)[ Docs](https://github.com/flextype-components/notification)[ RSS](/packages/flextype-components-notification/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

Notification Component
======================

[](#notification-component)

[![Version](https://camo.githubusercontent.com/e7fad2173e0edda12b241adabdae56e1c1925953f285b50f33eba03d9bd860b5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f666c6578747970652d636f6d706f6e656e74732f6e6f74696669636174696f6e2e7376673f6c6162656c3d76657273696f6e)](https://github.com/flextype-components/notification/releases)[![MIT License](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/flextype-components/notification/blob/master/LICENSE)[![Quality Score](https://camo.githubusercontent.com/c78c1e3b880d3e3e47fb08ed5e037e121a39c8520d1d96de56567270d1dd9fbb/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f666c6578747970652d636f6d706f6e656e74732f6e6f74696669636174696f6e2e7376673f6272616e63683d6d6173746572)](https://scrutinizer-ci.com/g/flextype-components/notification?branch=master)

Notification component for storing and retrieving flash data.

### Installation

[](#installation)

```
composer require flextype-components/notification

```

### Usage

[](#usage)

```
use Flextype\Component\Notification\Notification;
```

Initializes the Notification service.
This will read notification/flash data from the `$_SESSION` variable and load it into the $this-&gt;previous array.

```
Notification::init();
```

Returns a specific variable from the Notifications array.

```
echo Notification::get('success');
echo Notification::get('errors');
```

Adds specific variable to the Notifications array.

```
Notification::set('success', 'Data has been saved with success!');
Notification::set('errors', 'Data not saved!');
```

Adds specific variable to the Notifications array for current page.

```
Notification::setNow('success', 'Success!');
```

Clears the Notifications array.
Data that previous pages stored will not be deleted, just the data that this page stored itself.

```
Notification::clean();
```

License
-------

[](#license)

See [LICENSE](https://github.com/flextype-components/notification/blob/master/LICENSE)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~146 days

Total

3

Last Release

2655d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/477114?v=4)[Sergey Romanenko](/maintainers/Awilum)[@Awilum](https://github.com/Awilum)

---

Top Contributors

[![Awilum](https://avatars.githubusercontent.com/u/477114?v=4)](https://github.com/Awilum "Awilum (6 commits)")

---

Tags

datanotificationflashmessages

### Embed Badge

![Health badge](/badges/flextype-components-notification/health.svg)

```
[![Health](https://phpackages.com/badges/flextype-components-notification/health.svg)](https://phpackages.com/packages/flextype-components-notification)
```

###  Alternatives

[edvinaskrucas/notification

Package for Laravel for helping to manage flash / instant notifications / messages.

520393.9k10](/packages/edvinaskrucas-notification)[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)[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)[tamtamchik/simple-flash

Easy, framework agnostic flash notifications for PHP.

105104.1k5](/packages/tamtamchik-simple-flash)[devmarketer/laraflash

A powerful and flexible flash notifications system. Improving over built-in Laravel Flash messaging functionality.

6310.3k1](/packages/devmarketer-laraflash)[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)

PHPackages © 2026

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