PHPackages                             rinvex/tmp-edvinaskrucas-notification - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. rinvex/tmp-edvinaskrucas-notification

AbandonedArchivedLibrary[Mail &amp; Notifications](/categories/mail)

rinvex/tmp-edvinaskrucas-notification
=====================================

Package for Laravel for helping to manage flash / instant notifications / messages.

5.3.0(3y ago)012.9k11MITPHPPHP ^8.1.0

Since Mar 30Pushed 2y agoCompare

[ Source](https://github.com/rinvex/tmp-edvinaskrucas-notification)[ Packagist](https://packagist.org/packages/rinvex/tmp-edvinaskrucas-notification)[ RSS](/packages/rinvex-tmp-edvinaskrucas-notification/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (28)Used By (1)

Change package name temporary to "rinvex/tmp-edvinaskrucas-notification" to publish on packagist.

This is temporary forked package until a new release published by author, fully supports Laravel v8+

**Package is looking for maintainers Please contact me if interested.**

Notification package for Laravel4 / Laravel5
============================================

[](#notification-package-for-laravel4--laravel5)

[![Build Status](https://camo.githubusercontent.com/280e56edebb3b54b756d88228232e757a5f14c26f13b6f346358a20bc87c751c/68747470733a2f2f7472617669732d63692e6f72672f656476696e61736b72756361732f6e6f74696669636174696f6e2e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/edvinaskrucas/notification)

---

A simple notification management package for Laravel4.

---

- Notification containers
- Notification collections
- Notification messages
- Formats for notifications
- Flash / instant notifications
- Method chaining
- Message positioning

---

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

[](#installation)

Just place require new package for your laravel installation via composer.json

```
"edvinaskrucas/notification": "5.*"

```

Then hit `composer update`

### Version matrix

[](#version-matrix)

Laravel VersionPackage version= 5.45.2.\*&gt;= 5.15.1.\*&gt;= 5.0, &lt; 5.15.0.\*&gt;= 4, &lt; 5&gt;= 2, &lt;= 3### Registering to use it with laravel

[](#registering-to-use-it-with-laravel)

Add following lines to `app/config/app.php`

ServiceProvider array

```
\Krucas\Notification\NotificationServiceProvider::class,
```

Kernel middleware array (`must be placed after 'Illuminate\Session\Middleware\StartSession' middleware`)

```
\Krucas\Notification\Middleware\NotificationMiddleware::class,
```

Now you are able to use it with Laravel4.

### Publishing config file

[](#publishing-config-file)

If you want to edit default config file, just publish it to your app folder.

```
php artisan vendor:publish --provider="\Krucas\Notification\NotificationServiceProvider" --tag="config"

```

Usage
-----

[](#usage)

### Default usage

[](#default-usage)

Adding message to default container.

```
\Krucas\Notification\Facades\Notification::success('Success message');
\Krucas\Notification\Facades\Notification::error('Error message');
\Krucas\Notification\Facades\Notification::info('Info message');
\Krucas\Notification\Facades\Notification::warning('Warning message');
```

### Containers

[](#containers)

Containers allows you to set up different containers for different placeholders.

You can pass closure to modify containers, simply use this syntax showed below

```
\Krucas\Notification\Facades\Notification::container('myContainer', function($container)
{
    $container->info('Test info message');
    $container->error('Error');
});
```

Also you can access container like this

```
\Krucas\Notification\Facades\Notification::container('myContainer')->info('Info message');
```

Method chaining

```
\Krucas\Notification\Facades\Notification::container('myContainer')->info('Info message')->error('Error message');
```

If you want to use default container just use `null` as container name. Name will be taken from config file.

```
\Krucas\Notification\Facades\Notification::container()->info('Info message');
```

### Instant notifications (shown in same request)

[](#instant-notifications-shown-in-same-request)

Library supports not only flash messages, if you want to show notifications in same request just use

```
\Krucas\Notification\Facades\Notification::successInstant('Instant success message');
```

### Custom single message format

[](#custom-single-message-format)

Want a custom format for single message? No problem

```
\Krucas\Notification\Facades\Notification::success('Success message', 'Custom format :message');
```

Also you can still pass second param (format), to format messages, but you can format individual messages as shown above.

### Add message as object

[](#add-message-as-object)

You can add messages as objects

```
\Krucas\Notification\Facades\Notification::success(
    \Krucas\Notification\Facades\Notification::message('Sample text')
);
```

When adding message as object you can add additional params to message

```
\Krucas\Notification\Facades\Notification::success(
    \Krucas\Notification\Facades\Notification::message('Sample text')->format(':message')
);
```

### Add message as closure

[](#add-message-as-closure)

You can add messages by using a closure

```
\Krucas\Notification\Facades\Notification::success(function (Message $message) {
    $message->setMessage('Sample text')->setPosition(1);
});
```

### Accessing first notification from container

[](#accessing-first-notification-from-container)

You can access and show just first notification in container

```
{!! \Krucas\Notification\Facades\Notification::container('myContainer')->get('success')->first() !!}
```

Accessing first notification from all types

```
{!! \Krucas\Notification\Facades\Notification::container('myContainer')->all()->first() !!}
```

### Displaying notifications

[](#displaying-notifications)

To display all notifications in a default container you need to add just one line to your view file

```
{!! \Krucas\Notification\Facades\Notification::showAll() !!}
```

When using `showAll()` you may want to group your messages by type, it can be done like this

```
{!! \Krucas\Notification\Facades\Notification::group('info', 'success', 'error', 'warning')->showAll() !!}
```

This will group all your messages in group and output it, also you can use just one, two or three groups.

Manipulating group output on the fly

```
\Krucas\Notification\Facades\Notification::addToGrouping('success')->removeFromGrouping('error');
```

Display notifications by type in default container, you can pass custom format

```
{!! \Krucas\Notification\Facades\Notification::showError() !!}
{!! \Krucas\Notification\Facades\Notification::showInfo() !!}
{!! \Krucas\Notification\Facades\Notification::showWarning() !!}
{!! \Krucas\Notification\Facades\Notification::showSuccess(':message') !!}
```

Displaying notifications in a specific container with custom format.

```
{!! \Krucas\Notification\Facades\Notification::container('myContainer')->showInfo(':message') !!}
```

Or you can just use blade extension

```
@notification() // will render default container

@notification('custom') // will render 'custom' container
```

### Message positioning

[](#message-positioning)

There is ability to add message to certain position.

```
// This will add message at 5th position
\Krucas\Notification\Facades\Notification::info(Notification::message('info')->position(5));
\Krucas\Notification\Facades\Notification::info(Notification::message('info2')->position(1);
```

### Clearing messages

[](#clearing-messages)

You can clear all messages or by type.

```
\Krucas\Notification\Facades\Notification::clearError();
\Krucas\Notification\Facades\Notification::clearWarning();
\Krucas\Notification\Facades\Notification::clearSuccess();
\Krucas\Notification\Facades\Notification::clearInfo();
\Krucas\Notification\Facades\Notification::clearAll();
```

### Add message and display it instantly in a view file

[](#add-message-and-display-it-instantly-in-a-view-file)

Want to add message in a view file and display it? Its very simple:

```
{!! \Krucas\Notification\Facades\Notification::container('myInstant')
        ->infoInstant('Instant message added in a view and displayed!') !!}
```

You can also add multiple messages

```
{!! \Krucas\Notification\Facades\Notification::container('myInstant')
        ->infoInstant('Instant message added in a view and displayed!')
        ->errorInstant('Error...') !!}
```

###  Health Score

40

—

FairBetter than 87% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity82

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 83% 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 ~167 days

Recently: every ~214 days

Total

23

Last Release

1103d ago

Major Versions

1.2.3 → 2.0.02013-12-29

2.0.2 → 3.0.02014-07-29

3.0.1 → 4.0.02014-09-29

4.0.0 → 5.0.02015-02-23

PHP version history (8 changes)1.0PHP &gt;=5.3.0

3.0.0PHP &gt;=5.4.0

5.1.1PHP ^5.5|^7.0

5.2.0PHP ^5.6|^7.0

5.2.1PHP ^7.2.3 || v8.0.0

5.2.2PHP ^7.4.0 || ^8.0.0

5.2.4PHP ^8.0.0

5.3.0PHP ^8.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/7e54af04bcacb96e00894621335f88df7ed9895b6cc245deffdc9830a21cfe29?d=identicon)[Omranic](/maintainers/Omranic)

---

Top Contributors

[![edvinaskrucas](https://avatars.githubusercontent.com/u/2177571?v=4)](https://github.com/edvinaskrucas "edvinaskrucas (229 commits)")[![Omranic](https://avatars.githubusercontent.com/u/406705?v=4)](https://github.com/Omranic "Omranic (15 commits)")[![Harrisonbro](https://avatars.githubusercontent.com/u/377366?v=4)](https://github.com/Harrisonbro "Harrisonbro (9 commits)")[![samwiggins](https://avatars.githubusercontent.com/u/130836512?v=4)](https://github.com/samwiggins "samwiggins (3 commits)")[![diggersworld](https://avatars.githubusercontent.com/u/3224105?v=4)](https://github.com/diggersworld "diggersworld (3 commits)")[![akurtz](https://avatars.githubusercontent.com/u/1517659?v=4)](https://github.com/akurtz "akurtz (2 commits)")[![aleemb](https://avatars.githubusercontent.com/u/46616?v=4)](https://github.com/aleemb "aleemb (2 commits)")[![Kyslik](https://avatars.githubusercontent.com/u/2067589?v=4)](https://github.com/Kyslik "Kyslik (2 commits)")[![npostman](https://avatars.githubusercontent.com/u/5596683?v=4)](https://github.com/npostman "npostman (2 commits)")[![rmasters](https://avatars.githubusercontent.com/u/34284?v=4)](https://github.com/rmasters "rmasters (2 commits)")[![antonioribeiro](https://avatars.githubusercontent.com/u/3182864?v=4)](https://github.com/antonioribeiro "antonioribeiro (1 commits)")[![Nyholm](https://avatars.githubusercontent.com/u/1275206?v=4)](https://github.com/Nyholm "Nyholm (1 commits)")[![camiant](https://avatars.githubusercontent.com/u/7567420?v=4)](https://github.com/camiant "camiant (1 commits)")[![rickselby](https://avatars.githubusercontent.com/u/1564517?v=4)](https://github.com/rickselby "rickselby (1 commits)")[![duellsy](https://avatars.githubusercontent.com/u/330539?v=4)](https://github.com/duellsy "duellsy (1 commits)")[![warksit](https://avatars.githubusercontent.com/u/5296633?v=4)](https://github.com/warksit "warksit (1 commits)")[![mikedfunk](https://avatars.githubusercontent.com/u/661038?v=4)](https://github.com/mikedfunk "mikedfunk (1 commits)")

---

Tags

instantlaravelnotificationsflashmessages

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rinvex-tmp-edvinaskrucas-notification/health.svg)

```
[![Health](https://phpackages.com/badges/rinvex-tmp-edvinaskrucas-notification/health.svg)](https://phpackages.com/packages/rinvex-tmp-edvinaskrucas-notification)
```

###  Alternatives

[edvinaskrucas/notification

Package for Laravel for helping to manage flash / instant notifications / messages.

520393.9k10](/packages/edvinaskrucas-notification)[mckenziearts/laravel-notify

Flexible flash notifications for Laravel

1.7k1.1M5](/packages/mckenziearts-laravel-notify)[brian2694/laravel-toastr

toastr.js for Laravel

136649.4k5](/packages/brian2694-laravel-toastr)[devmarketer/laraflash

A powerful and flexible flash notifications system. Improving over built-in Laravel Flash messaging functionality.

6310.3k1](/packages/devmarketer-laraflash)[tamtamchik/simple-flash

Easy, framework agnostic flash notifications for PHP.

105104.1k5](/packages/tamtamchik-simple-flash)[gloudemans/notify

Laravel Notifications

1811.5k](/packages/gloudemans-notify)

PHPackages © 2026

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