PHPackages                             devtomic/magento2-module-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. devtomic/magento2-module-messages

Abandoned → [markshust/magento2-module-messages](/?search=markshust%2Fmagento2-module-messages)Magento2-module[Utility &amp; Helpers](/categories/utility)

devtomic/magento2-module-messages
=================================

The Messages module allows you to send success, notice, warning and error messages with HTML.

1.0.0(7y ago)571617[1 issues](https://github.com/devtomic/magento2-module-messages/issues)MITPHPPHP &gt;=7.1

Since Nov 6Pushed 5y ago3 watchersCompare

[ Source](https://github.com/devtomic/magento2-module-messages)[ Packagist](https://packagist.org/packages/devtomic/magento2-module-messages)[ RSS](/packages/devtomic-magento2-module-messages/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

MarkShust\_Messages
===================

[](#markshust_messages)

Send success, notice, warning and error messages with ``

 [![Supported Magento Versions](https://camo.githubusercontent.com/9c0567b94bb65300bf743da1c2a6df8f5aa9b78a7289924f989b06739e0c8771/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d6167656e746f2d322e322532307c253230322e332d627269676874677265656e2e7376673f6c6f676f3d6d6167656e746f266c6f6e6743616368653d74727565267374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/9c0567b94bb65300bf743da1c2a6df8f5aa9b78a7289924f989b06739e0c8771/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d6167656e746f2d322e322532307c253230322e332d627269676874677265656e2e7376673f6c6f676f3d6d6167656e746f266c6f6e6743616368653d74727565267374796c653d666c61742d737175617265) [![Latest Stable Version](https://camo.githubusercontent.com/116542325e953c82f652b2d837b2bdbb197f580511b7a1260ad12f067e72e7ff/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d61726b73687573742f6d6167656e746f322d6d6f64756c652d6d657373616765732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/markshust/magento2-module-messages) [![Composer Downloads](https://camo.githubusercontent.com/e3eecbd1ed457279be55c0cfe0854695f965181415566f1143a2b1652d9d0a50/68747470733a2f2f706f7365722e707567782e6f72672f6d61726b73687573742f6d6167656e746f322d6d6f64756c652d6d657373616765732f646f776e6c6f616473)](https://packagist.org/packages/markshust/magento2-module-messages) [![Maintained - Yes](https://camo.githubusercontent.com/04aba48520e6322ebc6c41b7995626a88ce408bd46ec4eb15ae474936b345276/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d61696e7461696e65642533462d7965732d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://GitHub.com/Naereen/StrapDown.js/graphs/commit-activity) [![](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://opensource.org/licenses/MIT)

Table of contents
-----------------

[](#table-of-contents)

- [Summary](#summary)
- [Installation](#installation)
- [API](#api)
- [Usage](#usage)
- [License](#license)

Summary
-------

[](#summary)

By default, when you call `$this->messageManager->addSuccessMessage` within Magento, you cannot pass custom HTML into your message. This doesn't provide you with the flexibility to provide customized messages to your visitors.

This module provides the ability to display custom messages including HTML, and still escapes the HTML to prevent cross-site scripting (XSS) attacks.

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

[](#installation)

```
composer require markshust/magento2-module-messages
bin/magento module:enable MarkShust_Messages
bin/magento setup:upgrade

```

API
---

[](#api)

```
/**
 * Any of the built-in complex message functions can be called with this identifer:
 *     addComplexSuccessMessage
 *     addComplexNoticeMessage
 *     addComplexWarningMessage
 *     addComplexErrorMessage
 *
 * @param string $identifer Set to 'withHtml' to use this module.
 * @param mixed[] $data Data containing elements.
 *     @type string 'html' Desired output including HTML.
 *     @type string[] 'allowed_tags' (optional) List of allowed tags to render as HTML.
 */
$this->messageManager->addComplexSuccessMessage($identifer, $data);
```

Usage
-----

[](#usage)

```
protected messageManager;

public function __construct(
    ...
    \Magento\Framework\Message\ManagerInterface $messageManager,
    ...
) {
    $this->messageManager = $messageManager;
    ...
}

$this->messageManager->addComplexSuccessMessage('withHtml', [
    'html' => 'This is bold text! And this is not.',
    'allowed_tags' => ['b'],
]);
```

[![Screenshot](https://raw.githubusercontent.com/markshust/magento2-module-messages/master/docs/demo.png)](https://raw.githubusercontent.com/markshust/magento2-module-messages/master/docs/demo.png)

License
-------

[](#license)

[MIT](https://opensource.org/licenses/MIT)

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity57

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2794d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/44817814?v=4)[Devtomic](/maintainers/devtomic)[@devtomic](https://github.com/devtomic)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/devtomic-magento2-module-messages/health.svg)

```
[![Health](https://phpackages.com/badges/devtomic-magento2-module-messages/health.svg)](https://phpackages.com/packages/devtomic-magento2-module-messages)
```

###  Alternatives

[elgentos/regenerate-catalog-urls

Regenerate Catalog URL Rewrites (products, categories, cms pages)

2842.6M](/packages/elgentos-regenerate-catalog-urls)[nosto/module-nostotagging

Increase your conversion rate and average order value by delivering your customers personalized product recommendations throughout their shopping journey.

27703.7k4](/packages/nosto-module-nostotagging)[tig/postnl-magento2

TIG Magento 2 PostNL extension

59570.5k5](/packages/tig-postnl-magento2)[myparcelnl/magento

A Magento 2 module that creates MyParcel labels

1860.2k](/packages/myparcelnl-magento)[loki/magento2-components

Core module for defining Alpine.js components with advanced AJAX features

1011.8k23](/packages/loki-magento2-components)[angeo/module-llms-txt

Magento 2 module for AI Engine Optimization (AEO). Generates spec-compliant llms.txt and llms-full.txt per llmstxt.org standard, plus streaming JSONL for vector indexing. Multi-store, multi-website, CLI, cron, async admin UI, Page Builder-aware sanitization, customer-group pricing, atomic writes, ETag/Cache-Control, .md mirrors.

111.1k](/packages/angeo-module-llms-txt)

PHPackages © 2026

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