PHPackages                             intothesource/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. intothesource/notification

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

intothesource/notification
==========================

notifications

5.4.0(9y ago)01.9k3BSD-2PHPPHP &gt;=5.3.0

Since Oct 19Pushed 9y ago4 watchersCompare

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

READMEChangelogDependencies (2)Versions (4)Used By (0)

Notification
============

[](#notification)

Flash notification that accepts a array and string. You can use it from your controller and also in the views.

Install
-------

[](#install)

```
composer require intothesource/notification
```

After install
-------------

[](#after-install)

#### ServiceProvider

[](#serviceprovider)

Add the following line to `config/app.php`.

at `providers`:

```
IntoTheSource\Notification\NotificationServiceProvider::class,
```

And at `aliases`:

```
'NotifyMessage' => IntoTheSource\Notification\Facade\NotifyMessage::class,
```

#### Publish files

[](#publish-files)

Run the following command:

```
php artisan vendor:publish
```

Usage
-----

[](#usage)

#### Including the flash message in your view

[](#including-the-flash-message-in-your-view)

To see the flash notification(s), you need to add the following `@include()`.

```
@include('notification::message')
```

And if you want the basic styling that comes with the package, also inlcude the following lines:

```

```

And the javascript:

```

```

###### NOTE: You also need the jQuery library.

[](#note-you-also-need-the-jquery-library)

Usage from the Controller
-------------------------

[](#usage-from-the-controller)

### available functions

[](#available-functions)

Creating a notification can be done with the next commands:

```
Notification::
    - success()
    - error()
    - warning()
    - info()
    - overlay() // Bootstrap modal
```

You can also add the class "Important" to the alert message, with the following command:

```
Notification::error('message', 'title')->important();
```

#### Message variables

[](#message-variables)

You can send a message as a string or as a array.

Syntax:

```
Notification::success([
                    'First success',
                    'Second success title' => [
                        'First success',
                        'Second success'
                    ],
                    'Third success'
                ]);

Notification::success('First success');
```

#### Title

[](#title)

The last string is the title. You have two options: give a string or leave it blank.

With title:

```
Notification::success('First success', 'Title success block');
```

Without title:

```
Notification::success('First success');
```

#### Overlay function

[](#overlay-function)

When you want to use a [Modal from bootstrap](http://getbootstrap.com/javascript/#modals) you can do so with the following function and syntax:

```
Notification::overlay( 'Message', 'Title' );
```

###### NOTE: All the given variables need to be a string.

[](#note-all-the-given-variables-need-to-be-a-string)

Usage from the view
-------------------

[](#usage-from-the-view)

You can also create a notification from the view file, this is usefull when your using a ajax form.

### available functions

[](#available-functions-1)

Creating a notification can be done with the next commands:

```
Notification.
    - success()
    - error()
    - warning()
    - info()
    - overlay() // Bootstrap modal
```

### Messages, Title and Important

[](#messages-title-and-important)

You can send a message as a string or as a array.

###### NOTE: The overlay function only accepts strings.

[](#note-the-overlay-function-only-accepts-strings)

#### Messages

[](#messages)

The following syntax is used at all functions but NOT FOR: `.overlay()`:

Single message:

```
Notification.success( 'First message' );
```

Multiple single messages:

```
Notification.success( ['First message', 'Second message', 'Third message'] );
```

Grouping messages:

```
Notification.success( {'Third message with array': ['First message', 'Second message']} );
```

Grouping messages inside a Array of messages:

```
Notification.success( ['First message', 'Second message', {'Third message with array': ['First message', 'Second message']}] );
```

#### Title

[](#title-1)

Adding a title to a notification:

```
Notification.success( 'message', 'The Title goes after the message' );
```

#### Important

[](#important)

Adding the class `important` to your notification is easly done with adding a boolean as last variable:

```
Notification.success( 'message', 'Title', TRUE );
```

### Overlay function

[](#overlay-function-1)

When you want to use a [Modal from bootstrap](http://getbootstrap.com/javascript/#modals) you can do so with the following function and syntax:

```
Notification.overlay( 'Message', 'Title', 'Button text' );
```

###### NOTE: All the given variables need to be a string.

[](#note-all-the-given-variables-need-to-be-a-string-1)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~242 days

Total

3

Last Release

3381d ago

Major Versions

0.0.2 → 5.4.02017-02-13

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ce4eca806b9f1efedf1a45634edc2a7dd5eff9baa43d0e6bdba5f53c9a38a27?d=identicon)[intothesource](/maintainers/intothesource)

---

Top Contributors

[![bbredewold](https://avatars.githubusercontent.com/u/2910910?v=4)](https://github.com/bbredewold "bbredewold (2 commits)")[![gjroke](https://avatars.githubusercontent.com/u/20582379?v=4)](https://github.com/gjroke "gjroke (2 commits)")

---

Tags

laravelnotificationnotificationsthe sourcethesourcein to the sourceintothesource

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/intothesource-notification/health.svg)

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

###  Alternatives

[liran-co/laravel-notification-subscriptions

Notification subscription management.

128239.2k1](/packages/liran-co-laravel-notification-subscriptions)[coreproc/nova-notification-feed

A Laravel Nova package that adds a notification feed in your Nova app.

10149.1k](/packages/coreproc-nova-notification-feed)[naif/nova-push-notification

A Laravel Nova tool to send push notifications via OneSignal

166.4k](/packages/naif-nova-push-notification)[sarfraznawaz2005/laravel-sse

Laravel package to provide Server Sent Events functionality for your app.

474.6k](/packages/sarfraznawaz2005-laravel-sse)

PHPackages © 2026

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