PHPackages                             milkyway-multimedia/ss-mwm-flashmessage - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. milkyway-multimedia/ss-mwm-flashmessage

ActiveSilverstripe-module[Utility &amp; Helpers](/categories/utility)

milkyway-multimedia/ss-mwm-flashmessage
=======================================

A JS based flash messenger for Silverstripe

24701PHP

Since Jul 8Pushed 9y ago1 watchersCompare

[ Source](https://github.com/milkyway-multimedia/ss-mwm-flashmessage)[ Packagist](https://packagist.org/packages/milkyway-multimedia/ss-mwm-flashmessage)[ RSS](/packages/milkyway-multimedia-ss-mwm-flashmessage/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Milkyway Multimedia - Silverstripe Core Extensions
==================================================

[](#milkyway-multimedia---silverstripe-core-extensions)

This is a bit special to use, to add area specific pages you have to prepend your calls with the area you would like to add it to. For example:

```
    singleton('message')->cms()->add('Yay! My pretty messages');

```

If you want to add more, you can chain but you always must prepend the area.

```
    singleton('message')->cms()->info('Yay! My pretty messages')->cms()->error('A bad message');

```

- Add a global message `singleton('message')->add($content, $level, $timeout, $priority, $dismissable, $area)`
- Add a global message by array (you can add an id if you use this method) `singleton('message')->add($params)`
- Growl example `singleton('message')->cms()->note('grrr...')`
- Remove a global message `singleton('message')->remove($content, $level, $area)`
- Remove a global message by array (you can remove by id if you use this method) `singleton('message')->remove($params)`
- Add a link to call before displaying notifications (for calls to APIs) `singleton('message')->before($link)`
- Force load CSS &amp; JS for certain area (for API based messages) `singleton('message')->style($area)`

#### Available areas

[](#available-areas)

Areas are mapped to controllers. The following areas are available:

- cms: Will add a global message to the CMS
- page: Will add a global message to any Page
- form: Will add a global message during a form request
- global: Add a global message

By default the cms area is used. Any other value will add a message to any controller. So you can use -&gt;global() to add a global message.

#### Available levels

[](#available-levels)

- info
- success
- error
- warning
- modal: Show a message modal, this will attempt to either use a bootstrap modal, jquery ui modal, vex alert or javascript alert (ordered by priority)
- note: Show a growl notification, this will attempt to either use a Messenger, vex alert, CMS notification or javascript alert (ordered by priority)

#### Blockers

[](#blockers)

Once a notification is dismissed, it will not be shown for the current session. To disable this, you must inject the NullBlocker into the Notifier class, as below:

```

    Injector:
      message:
        constructor:
          BlocksNotifications: '%$Milkyway\SS\FlashMessage\NullBlocker'

```

You can create your own implementation, but you must implement the `Milkyway\SS\FlashMessage\Contracts\BlocksNotifications` interface and inject it as above. An example would be a Cookie blocker, or a class that blocks based on area.

#### How it works

[](#how-it-works)

This messaging system is javascript based. It should work on most controllers as long as it accesses Silverstripe requirements.

Install
-------

[](#install)

Add the following to your composer.json file

```

    "require"          : {
		"milkyway-multimedia/ss-mwm-flashmessage": "dev-master"
	}

```

License
-------

[](#license)

- MIT

Version
-------

[](#version)

- Version 0.1 (Alpha)

Contact
-------

[](#contact)

#### Mellisa Hankins

[](#mellisa-hankins)

- E-mail:
- Twitter: [@mi3ll](https://twitter.com/mi3ll "mi3ll on twitter")
- Website: mellimade.com.au

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

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/873db53f59bc2f8309c506d1b56313b0c7d8c7b3160eb1700ee0754d060f9767?d=identicon)[mi3ll](/maintainers/mi3ll)

---

Top Contributors

[![mellm0](https://avatars.githubusercontent.com/u/229937?v=4)](https://github.com/mellm0 "mellm0 (1 commits)")

### Embed Badge

![Health badge](/badges/milkyway-multimedia-ss-mwm-flashmessage/health.svg)

```
[![Health](https://phpackages.com/badges/milkyway-multimedia-ss-mwm-flashmessage/health.svg)](https://phpackages.com/packages/milkyway-multimedia-ss-mwm-flashmessage)
```

###  Alternatives

[pocketmine/bedrock-data

Blobs of data generated from Minecraft: Bedrock Edition, used by PocketMine-MP

115418.0k5](/packages/pocketmine-bedrock-data)[nahid/qarray

QArray is a PHP abstraction for querying array

108403.2k2](/packages/nahid-qarray)[iben12/laravel-statable

Statable trait for Laravel Eloquent models

96299.8k1](/packages/iben12-laravel-statable)[flyntwp/acf-field-group-composer

52145.4k](/packages/flyntwp-acf-field-group-composer)[koriym/app-state-diagram

An Application Diagram Generator

38222.0k2](/packages/koriym-app-state-diagram)[terminal42/contao-leads

Leads extension for Contao Open Source CMS; Store and manage form data with ease!

41167.9k10](/packages/terminal42-contao-leads)

PHPackages © 2026

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