PHPackages                             tomas/message - 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. tomas/message

ActiveLibrary[Queues &amp; Workers](/categories/queues)

tomas/message
=============

Message handling plugin

v1.0(10y ago)116MITPHPPHP &gt;=5.4

Since Feb 19Pushed 10y ago1 watchersCompare

[ Source](https://github.com/TomasSjosten/Message)[ Packagist](https://packagist.org/packages/tomas/message)[ Docs](http://tomassjosten.se)[ RSS](/packages/tomas-message/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

\#Message plugin by [Tomas Sjösten](http://tomassjosten.se)
-----------------------------------------------------------

[](#message-plugin-by-tomas-sjösten)

[![Build Status](https://camo.githubusercontent.com/f52dd36b96f44f0fe5b1b986327ac1fd6acc5d665cb1c6d2e4da8d380813a350/68747470733a2f2f7472617669732d63692e6f72672f546f6d6173536a6f7374656e2f4d6573736167652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/TomasSjosten/Message)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/6e6512cde6e51f3b58c288b9a98fb027e2dcb2dac0d9b1610fce326f72ad704f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f546f6d6173536a6f7374656e2f4d6573736167652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/TomasSjosten/Message/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/5959faf027794b811b01e6bd2ffa8b214aa02b0385558989fa66ea2f35e65c51/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f546f6d6173536a6f7374656e2f4d6573736167652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/TomasSjosten/Message/?branch=master)

This is a simple Message plugin that will store message via Session and display it for a given interval. Support for several message bubbles.

1. *Include*

- message.js
- message.css
- Message.php
    - Include the file wherever you may want to start a message and also where you want to output message.

\##Simple SET and GET

1. setMessage(*your message*)

- accepts array only
- \['type', 'msg'\]
    - Type either "ok" or "error"
    - Msg the wanted message to display

2. getMessage() \*outputs the message

\##Use with Anax-MVC

1. Js and Css files

- message.js
    - put into webroot/js
    - include that JS-file in your Theme
- message.css
    - put into webroot/css
    - include that CSS-file in your Theme

2. PHP file

- Change Namespace in Message.php file
- Load Message.php in CDIFactory
- Create custom CDIFactory

```

```

3. Change file "config\_with\_app.php"

- Change to CDIFactory instead of default
- Add $app-&gt;session();

4. index.php (or choosen router)

- furthest down, under "$app-&gt;theme-&gt;render();" add "$app-&gt;message-&gt;getMessage()"

*Drop me a mail  if you want to give me some feedback.*

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

3786d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1782777?v=4)[Tomas Sjösten](/maintainers/tomassjosten)[@TomasSjosten](https://github.com/TomasSjosten)

---

Top Contributors

[![TomasSjosten](https://avatars.githubusercontent.com/u/1782777?v=4)](https://github.com/TomasSjosten "TomasSjosten (34 commits)")

---

Tags

messagemicrosessionmodule

### Embed Badge

![Health badge](/badges/tomas-message/health.svg)

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

###  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.6k132.3M997](/packages/php-amqplib-php-amqplib)[aws/aws-php-sns-message-validator

Amazon SNS message validation for PHP

22223.4M117](/packages/aws-aws-php-sns-message-validator)

PHPackages © 2026

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