PHPackages                             ipunkt/laravel-notify - 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. ipunkt/laravel-notify

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

ipunkt/laravel-notify
=====================

Provides an ready to use object oriented notification interface for laravel 4, including working example javascript and css for Twitter Bootstrap 3

1.1.1(7y ago)63061MITPHPPHP &gt;=5.4.0

Since Jul 28Pushed 7y ago4 watchersCompare

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

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

laravel-notify
==============

[](#laravel-notify)

[![Latest Stable Version](https://camo.githubusercontent.com/084091f3b2ba56f9823a21207039ce81fd5bfd4d4ac011b3dc9f92ffe7409ffc/68747470733a2f2f706f7365722e707567782e6f72672f6970756e6b742f6c61726176656c2d6e6f746966792f762f737461626c652e737667)](https://packagist.org/packages/ipunkt/laravel-notify) [![Latest Unstable Version](https://camo.githubusercontent.com/6aa868ea409b314d6d0c62c4038002f388342a93e87084d34c1ba6f48b315f9a/68747470733a2f2f706f7365722e707567782e6f72672f6970756e6b742f6c61726176656c2d6e6f746966792f762f756e737461626c652e737667)](https://packagist.org/packages/ipunkt/laravel-notify) [![License](https://camo.githubusercontent.com/a96ce810006d0ff8e0ddafb1e3bd2ac8d49260077cdff8079750ab819c7a311c/68747470733a2f2f706f7365722e707567782e6f72672f6970756e6b742f6c61726176656c2d6e6f746966792f6c6963656e73652e737667)](https://packagist.org/packages/ipunkt/laravel-notify) [![Total Downloads](https://camo.githubusercontent.com/ce62b38146afb02785e34317b9aae0273470a48240017efc8c606dea3eaaa76b/68747470733a2f2f706f7365722e707567782e6f72672f6970756e6b742f6c61726176656c2d6e6f746966792f646f776e6c6f6164732e737667)](https://packagist.org/packages/ipunkt/laravel-notify)

Provides an ready to use object oriented notification interface for laravel 4, including working example javascript and css for Twitter Bootstrap 3

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

[](#installation)

Add to your composer.json following lines

```
"require": {
	"ipunkt/laravel-notify": "1.*"
}

```

Add `'Ipunkt\LaravelNotify\LaravelNotifyServiceProvider',` to `providers` in `app/config/app.php`. The Service provider also registers an alias `Notify` to your application.

On command line publish the database migrations:

```
$> php artisan migrate --package="ipunkt/laravel-notify"

```

Usage
-----

[](#usage)

Add somewhere in your bootstrap the shipped view composer to auto-handle the given view script:

```
View::composer('laravel-notify::notification', 'Ipunkt\LaravelNotify\Composers\ViewComposer');

```

The view composer injects a variable `$notifications` into the view. It is a collection of all notifications that were created or read.

Now you can use this template to display all notifications or you can use it with Bootstrap 3 in your navbar like this.

```
$> php artisan asset:publish ipunkt/laravel-notify

```

And then include the following files in your layout: `/packages/ipunkt/laravel-notify/css/notify.css` and `/packages/ipunkt/laravel-notify/js/notify.js`. The latter needs jquery to be existent.

Then go to your layout and create an ``in your navbar navigation list.

Whenever there are notifications to be listed the ViewComposer initially fills the `$notifications` variable in the shipped `notification` view and the javascript makes an ajax call to get these and displays as menu. Without javascript the link opens a page where all notifications will be listed.

### Important Notice

[](#important-notice)

Do not forget to set filters for the routes build by the package. For example:

```
Route::when('notify/*', 'auth');

```

This example adds the `auth` filter to all package build routes.

Use-Cases
---------

[](#use-cases)

### 1. Message Notification

[](#1-message-notification)

If you want to publish a simple message notification just do the following to notify users:

```
$user = Auth::user();
Notify::user($user, new \Ipunkt\LaravelNotify\Types\MessageNotification('Welcome on board!'));
// or
// Notify::users([$user, ...], new \Ipunkt\LaravelNotify\Types\MessageNotification('Welcome on board!'));

```

This sends a simple shipped message notification to the current logged in user.

### 2. Specific Notification

[](#2-specific-notification)

For sending application specific notifications simply create your own NotificationType.

```
class MyNotification extends Ipunkt\LaravelNotify\Types\AbstractNotification {
}

```

Then you can modify the read and done action for your needs. And you can add your own custom actions. You do not have to use only these 3 actions: `created`, `read`, `done`. You can build your own custom workflow. Try it out!

The AbstractNotification sends a user to the done action if he reads the notification. Override this behaviour to have your own workflow. Ending with `done` might be a good one, starting with `created` is fix by the current implementation.

###  Health Score

30

—

LowBetter than 65% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

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

Total

3

Last Release

2655d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4946056?v=4)[Robert Kummer](/maintainers/rokde)[@rokde](https://github.com/rokde)

---

Top Contributors

[![justb81](https://avatars.githubusercontent.com/u/3680539?v=4)](https://github.com/justb81 "justb81 (1 commits)")

---

Tags

laraveljavascriptnotificationobjectjquerybootstraplaravel4OOP

### Embed Badge

![Health badge](/badges/ipunkt-laravel-notify/health.svg)

```
[![Health](https://phpackages.com/badges/ipunkt-laravel-notify/health.svg)](https://phpackages.com/packages/ipunkt-laravel-notify)
```

###  Alternatives

[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

1.1k3.4M35](/packages/laravel-notification-channels-telegram)[mckenziearts/laravel-notify

Flexible flash notifications for Laravel

1.7k1.1M5](/packages/mckenziearts-laravel-notify)[yadahan/laravel-authentication-log

Laravel Authentication Log provides authentication logger and notification for Laravel.

416632.8k5](/packages/yadahan-laravel-authentication-log)[mouse0270/bootstrap-growl

This is a simple pluging that turns standard Bootstrap alerts into "Growl-like" notifications.

2.2k119.1k](/packages/mouse0270-bootstrap-growl)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)

PHPackages © 2026

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