PHPackages                             backendorf/m2-floating-messages - 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. backendorf/m2-floating-messages

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

backendorf/m2-floating-messages
===============================

Magento 2 Luma floating messages

1.0.0(7mo ago)01MITPHP

Since Oct 11Pushed 7mo agoCompare

[ Source](https://github.com/backendorf/m2-floating-messages)[ Packagist](https://packagist.org/packages/backendorf/m2-floating-messages)[ RSS](/packages/backendorf-m2-floating-messages/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Magento 2 Floating Messages
===========================

[](#magento-2-floating-messages)

A Magento 2 module that makes the default storefront messages float and auto-hide, improving UX without modifying core code. Messages can be positioned (e.g., top/bottom, left/right) and a hide delay can be configured from Admin.

Overview
--------

[](#overview)

- Adds CSS/JS to float the .page.messages container and apply optional positioning classes.
- RequireJS mixin augments Magento\_Theme/js/view/messages to auto-hide success and notice messages after a configurable delay.
- Admin configuration under Stores &gt; Configuration &gt; Backendorf &gt; Floating Messages.

Stack
-----

[](#stack)

- Language: PHP (Magento 2 module)
- Platform/Framework: Magento 2 (frontend: RequireJS, jQuery, Magento customer-data)
- Package manager: Composer (type: magento2-module)
- Autoloading: PSR-4 (Backendorf\\FloatingMessages\\) and registration.php

Requirements
------------

[](#requirements)

- Magento 2.x
- PHP version compatible with your Magento 2 installation
- Composer

TODO:

- Document exact supported Magento and PHP versions (none declared in composer.json).

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

[](#installation)

Run in your Magento project root:

- composer require backendorf/m2-floating-messages
- bin/magento module:enable Backendorf\_FloatingMessages
- bin/magento setup:upgrade

If in production mode, also run:

- bin/magento setup:di:compile
- bin/magento setup:static-content:deploy -f

Finally:

- bin/magento cache:flush

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

[](#configuration)

Admin path: Stores &gt; Configuration &gt; Backendorf &gt; Floating Messages

Options (scope: Default/Website/Store):

- Enabled (Yes/No)
- Position (options provided by Backendorf\\FloatingMessages\\Model\\Config\\Source\\Position)
- Time to hide (milliseconds)

Defaults (from etc/config.xml):

- Enabled: 1 (Yes)
- Position: bottom right
- Time to hide: 5000 ms

How it works
------------

[](#how-it-works)

- Observer Backendorf\\FloatingMessages\\Observer\\LayoutLoadBefore adds body classes based on configuration ( floating-messages, and top/bottom, left/right).
- Layout handle view/frontend/layout/default.xml injects a block Backendorf\\FloatingMessages\\Block\\Config which renders a small JS snippet exposing window.floating\_messages.timeToHide.
- RequireJS config adds a mixin for Magento\_Theme/js/view/messages which subscribes to messages and auto-hides success/notice types after the configured delay.
- LESS styles in view/frontend/web/css/source/\_module.less position the messages container based on body classes.

License
-------

[](#license)

The repository contains an MIT License file.

Changelog
---------

[](#changelog)

- Initial README expanded to include installation, configuration, internals, and commands.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance69

Regular maintenance activity

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

210d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9625b72ab076b8fd09e509fb153b23ec3ff9295e7e15ecf17a485f782e0dce4b?d=identicon)[backendorf](/maintainers/backendorf)

---

Top Contributors

[![backendorf](https://avatars.githubusercontent.com/u/37641316?v=4)](https://github.com/backendorf "backendorf (3 commits)")

---

Tags

lumamagentomagento-extensionmagento2magento2-extensionmagento2-modulemagento2-module-free

### Embed Badge

![Health badge](/badges/backendorf-m2-floating-messages/health.svg)

```
[![Health](https://phpackages.com/badges/backendorf-m2-floating-messages/health.svg)](https://phpackages.com/packages/backendorf-m2-floating-messages)
```

###  Alternatives

[pwm/datetime-period

An implementation of the datetime period type for working with temporal intervals

679.0k](/packages/pwm-datetime-period)

PHPackages © 2026

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