PHPackages                             mouf/html.widgets.messageservice - 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. [Queues &amp; Workers](/categories/queues)
4. /
5. mouf/html.widgets.messageservice

ActiveMouf-library[Queues &amp; Workers](/categories/queues)

mouf/html.widgets.messageservice
================================

Use this package to display info/warning/error messages to the user on a web page. Using the SessionMessageService class, you register messages to be displayed. Using the MessageWidget class, you display the error messages in your templates.

v4.0.0(3y ago)0240.0k23MITPHPPHP ^8.0

Since Dec 22Pushed 3y ago2 watchersCompare

[ Source](https://github.com/thecodingmachine/html.widgets.messageservice)[ Packagist](https://packagist.org/packages/mouf/html.widgets.messageservice)[ Docs](https://github.com/thecodingmachine/html.widgets.messageservice)[ RSS](/packages/mouf-htmlwidgetsmessageservice/feed)WikiDiscussions 4.0 Synced 1mo ago

READMEChangelog (1)Dependencies (10)Versions (7)Used By (3)

User Message Service
====================

[](#user-message-service)

This service allows to implement user oriented messaging. It relies on a simple function that will add a message with a given level, and an HTML block that will render user's messages when the page is loaded.

[![Example](doc/img/example.png)](doc/img/example.png)

Using the Service
-----------------

[](#using-the-service)

When the package is installed, a block is added to the template's content. When rendered, this block will dump the messages that were stored into the session.

Add a message :

```
$messageService->setMessage("User foo bar has been successfully cerated", UserMessageInterface::SUCCESS);
```

The `UserMessageInterface` defines 4 types of message :

- SUCCESS
- INFO
- WARNING
- ERROR

By default, the message will be displayed in the header block. But you are free to insert this block anywhere.

More Information can be found here :

- [Using the message service](doc/index.md)
- [Advanced usage](doc/advanced.md)

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 61.1% 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 ~605 days

Recently: every ~863 days

Total

7

Last Release

1264d ago

Major Versions

2.2.x-dev → 3.0.x-dev2017-03-22

3.0.x-dev → 4.0.x-dev2022-12-01

PHP version history (2 changes)2.0.x-devPHP &gt;=5.3.0

4.0.x-devPHP ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1104771?v=4)[mouf](/maintainers/mouf)[@Mouf](https://github.com/Mouf)

---

Top Contributors

[![moufmouf](https://avatars.githubusercontent.com/u/1290952?v=4)](https://github.com/moufmouf "moufmouf (22 commits)")[![nguyenk](https://avatars.githubusercontent.com/u/2227554?v=4)](https://github.com/nguyenk "nguyenk (10 commits)")[![vaidiep](https://avatars.githubusercontent.com/u/2227695?v=4)](https://github.com/vaidiep "vaidiep (2 commits)")[![homersimpsons](https://avatars.githubusercontent.com/u/16977446?v=4)](https://github.com/homersimpsons "homersimpsons (1 commits)")[![isow](https://avatars.githubusercontent.com/u/2903627?v=4)](https://github.com/isow "isow (1 commits)")

---

Tags

messagewidgetwidgetsmoufmessageservice

###  Code Quality

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mouf-htmlwidgetsmessageservice/health.svg)

```
[![Health](https://phpackages.com/badges/mouf-htmlwidgetsmessageservice/health.svg)](https://phpackages.com/packages/mouf-htmlwidgetsmessageservice)
```

###  Alternatives

[php-amqplib/php-amqplib

Formerly videlalvaro/php-amqplib. This library is a pure PHP implementation of the AMQP protocol. It's been tested against RabbitMQ.

4.6k125.3M879](/packages/php-amqplib-php-amqplib)[php-amqplib/rabbitmq-bundle

Integrates php-amqplib with Symfony &amp; RabbitMq. Formerly emag-tech-labs/rabbitmq-bundle, oldsound/rabbitmq-bundle.

1.3k20.1M65](/packages/php-amqplib-rabbitmq-bundle)[bunny/bunny

Performant pure-PHP AMQP (RabbitMQ) non-blocking ReactPHP library

7426.5M37](/packages/bunny-bunny)[aws/aws-php-sns-message-validator

Amazon SNS message validation for PHP

21421.5M91](/packages/aws-aws-php-sns-message-validator)[simple-bus/message-bus

Generic classes and interfaces for messages and message buses

3455.7M30](/packages/simple-bus-message-bus)[sabas/edifact

Tools in PHP for UN/EDIFACT

2881.6M7](/packages/sabas-edifact)

PHPackages © 2026

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