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

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

tobento/app-message
===================

App message manager.

2.0(7mo ago)059↓33.3%2MITPHPPHP &gt;=8.4

Since Mar 1Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/tobento-ch/app-message)[ Packagist](https://packagist.org/packages/tobento/app-message)[ Docs](https://www.tobento.ch)[ RSS](/packages/tobento-app-message/feed)WikiDiscussions 2.x Synced 1mo ago

READMEChangelog (2)Dependencies (6)Versions (4)Used By (2)

App Message
===========

[](#app-message)

[Message](https://github.com/tobento-ch/service-message) manager for the app.

Table of Contents
-----------------

[](#table-of-contents)

- [Getting Started](#getting-started)
    - [Requirements](#requirements)
- [Documentation](#documentation)
    - [App](#app)
    - [Message Boot](#message-boot)
        - [Creating Messages](#creating-messages)
        - [Translating Messages](#translating-messages)
        - [Logging Messages](#logging-messages)
- [Credits](#credits)

---

Getting Started
===============

[](#getting-started)

Add the latest version of the app message project running this command.

```
composer require tobento/app-message

```

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

[](#requirements)

- PHP 8.4 or greater

Documentation
=============

[](#documentation)

App
---

[](#app)

Check out the [**App Skeleton**](https://github.com/tobento-ch/app-skeleton) if you are using the skeleton.

You may also check out the [**App**](https://github.com/tobento-ch/app) to learn more about the app in general.

Message Boot
------------

[](#message-boot)

The message boot does the following:

- configures the messages factory

```
use Tobento\App\AppFactory;
use Tobento\Service\Message\MessagesFactoryInterface;

// Create the app
$app = new AppFactory()->createApp();

// Add directories:
$app->dirs()
    ->dir(realpath(__DIR__.'/../'), 'root')
    ->dir(realpath(__DIR__.'/../app/'), 'app')
    ->dir($app->dir('app').'config', 'config', group: 'config')
    ->dir($app->dir('root').'public', 'public')
    ->dir($app->dir('root').'vendor', 'vendor');

// Adding boots
$app->boot(\Tobento\App\Message\Boot\Message::class);
$app->booting();

// Implemented interfaces:
$messagesFactory = $app->get(MessagesFactoryInterface::class);

// Run the app
$app->run();
```

### Creating Messages

[](#creating-messages)

Check out the [Message Service - Messages Factory](https://github.com/tobento-ch/service-message#messages-factory) section to learn more about creating messages.

### Translating Messages

[](#translating-messages)

Simply, install the [App Translation](https://github.com/tobento-ch/app-translation) bundle and boot the `\Tobento\App\Translation\Boot\Translation::class`:

```
composer require tobento/app-translation

```

```
use Tobento\App\AppFactory;

// Create the app
$app = new AppFactory()->createApp();

// Add directories:
$app->dirs()
    ->dir(realpath(__DIR__.'/../'), 'root')
    ->dir(realpath(__DIR__.'/../app/'), 'app')
    ->dir($app->dir('app').'config', 'config', group: 'config')
    ->dir($app->dir('root').'public', 'public')
    ->dir($app->dir('root').'vendor', 'vendor');

// Adding boots
$app->boot(\Tobento\App\Translation\Boot\Translation::class);
$app->boot(\Tobento\App\Message\Boot\Message::class);

// Run the app
$app->run();
```

Messages will be translated based on the [Configured Translator Locale](https://github.com/tobento-ch/app-translation#configure-translator).

The configured [Message Translator Modifier](https://github.com/tobento-ch/service-message#translator) uses the `*` as resource name. Check out the [Translation Resources](https://github.com/tobento-ch/service-translation#resources) and [Translation Files Resources](https://github.com/tobento-ch/service-translation#files-resources) to learn more about it.

Check out the [Add Translation](https://github.com/tobento-ch/app-translation#add-translations) or [Migrate Translation](https://github.com/tobento-ch/app-translation#migrate-translations) section to learn how to add or migrate translations.

### Logging Messages

[](#logging-messages)

Simply, install the [App Logging](https://github.com/tobento-ch/app-logging) bundle and boot the `\Tobento\App\Logging\Boot\Logging::class`:

```
composer require tobento/app-translation

```

```
use Tobento\App\AppFactory;

// Create the app
$app = new AppFactory()->createApp();

// Add directories:
$app->dirs()
    ->dir(realpath(__DIR__.'/../'), 'root')
    ->dir(realpath(__DIR__.'/../app/'), 'app')
    ->dir($app->dir('app').'config', 'config', group: 'config')
    ->dir($app->dir('root').'public', 'public')
    ->dir($app->dir('root').'vendor', 'vendor');

// Adding boots
$app->boot(\Tobento\App\Logging\Boot\Logging::class);
$app->boot(\Tobento\App\Message\Boot\Message::class);

// Run the app
$app->run();
```

On the [App Logging Config](https://github.com/tobento-ch/app-logging#logging-config) file define the logger used for messages:

```
/*
|--------------------------------------------------------------------------
| Aliases
|--------------------------------------------------------------------------
*/

'aliases' => [
    'messages' => 'daily',
],

```

Credits
=======

[](#credits)

- [Tobias Strub](https://www.tobento.ch)
- [All Contributors](../../contributors)

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance63

Regular maintenance activity

Popularity10

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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

Every ~193 days

Total

4

Last Release

227d ago

Major Versions

1.x-dev → 2.02025-10-03

PHP version history (2 changes)1.0.0PHP &gt;=8.0

2.0PHP &gt;=8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/055d6a1b5c2384bb179c75ab0b55914231d898fdc4dffeb30770f81200e52206?d=identicon)[TOBENTOch](/maintainers/TOBENTOch)

---

Top Contributors

[![tobento-ch](https://avatars.githubusercontent.com/u/16684832?v=4)](https://github.com/tobento-ch "tobento-ch (4 commits)")

---

Tags

messagepackageapptobento

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

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

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

PHPackages © 2026

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