PHPackages                             knifecake/outmess - 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. knifecake/outmess

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

knifecake/outmess
=================

Keep track of outcome messages easily.

1.1(11y ago)021MITPHPPHP &gt;=5.3.0

Since Sep 3Pushed 11y ago1 watchersCompare

[ Source](https://github.com/knifecake/outmess)[ Packagist](https://packagist.org/packages/knifecake/outmess)[ RSS](/packages/knifecake-outmess/feed)WikiDiscussions master Synced 2mo ago

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

Laravel Outcome Outmess
=======================

[](#laravel-outcome-outmess)

This package allows you to add messages depending on the outcome of processes, such as updating a user or deleting a menu item. Then you may retrieve all those messages at once and format them in HTML according to the configuration you have set, which may depend, for instance, on the UI framework you are using.

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

[](#installation)

Add the following to your `composer.json` file:

```
"require": {
  ...
  "knifecake/outmess": "1.*"
},

```

Add the following to your Service Provider array in `app/config/app.php`:

```
  ...
  'Knifecake\Outmess\OutmessServiceProvider',

```

And this under the `aliases` array:

```
  ...
  'Outmess' => 'Knifecake\Outmess\Facades\Outmess',
  ...

```

Setting up a new style
----------------------

[](#setting-up-a-new-style)

Styles are used to render your messages when you call `Outmess::render()`. All styles are present in the config file inside the `styles` array. Every style consists of one or more message types that correspond to the name of the method you use to add a message. Therefore, to set an error message you may call `Outmess::error($message)` and define that message type inside your style using the key `message`. Here is an example of a style definition:

```
'styles' => array(
  'style-name' => array(
    'message-type-1' => 'Message format string 1, always containing :message',
    ...
    'message-type-n' => 'Message format string n, always containing :message',
  ),
),

```

Chosing which style to use
--------------------------

[](#chosing-which-style-to-use)

To chose what style you want to use change the 'style' config value to the name of that style you wish to use, as long as it is defined inside the styles array. You may also change the style you are using at runtime by calling `Outmess::style('new-style')`. Notice the style you set will affect all the messages you have already added if any.

Outputting the messages
-----------------------

[](#outputting-the-messages)

To output your messages using the style you have chosen call `Outmess::render()`. This method outputs a string of HTML so it may be called on a view, for example atop a page. If you did not add any messages this method won't output anything so no worries if you call it without checking first.

Contributing and reporting bugs
-------------------------------

[](#contributing-and-reporting-bugs)

Want a new feature? Something wrong? Any questions? Head to  and make a pull request or create a new issue.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

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 ~65 days

Recently: every ~98 days

Total

7

Last Release

4246d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f38b5991bcc7482a48a4dff6132c39638c47c77128e0fccbdad02b609fd4a626?d=identicon)[knifecake](/maintainers/knifecake)

---

Top Contributors

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

---

Tags

laravelmessageslaravel4views

### Embed Badge

![Health badge](/badges/knifecake-outmess/health.svg)

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

###  Alternatives

[prologue/alerts

Prologue Alerts is a package that handles global site messages.

3486.1M30](/packages/prologue-alerts)[bllim/datatables

Server-side handler of DataTables Jquery Plugin for Laravel 4

261413.7k4](/packages/bllim-datatables)[thujohn/rss

RSS builder for Laravel 4

72130.0k3](/packages/thujohn-rss)[cartalyst/alerts

Alerts allows you to easily pass alert messages to your Laravel views.

3064.2k](/packages/cartalyst-alerts)[gerardojbaez/messenger

Messenger functionality for Laravel 5.2.

738.5k](/packages/gerardojbaez-messenger)

PHPackages © 2026

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