PHPackages                             illizian/notifications - 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. illizian/notifications

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

illizian/notifications
======================

A Laravel 4 package that provides Facebook style notifications

6342PHP

Since Apr 26Pushed 10y agoCompare

[ Source](https://github.com/Illizian/laravel-notifications)[ Packagist](https://packagist.org/packages/illizian/notifications)[ RSS](/packages/illizian-notifications/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

laravel-notifications
=====================

[](#laravel-notifications)

A basic Laravel package that provides Facebook style notifications. Notifications are assigned to your own User model and are automatically marked as read when that User visits the URL associated with the notification.

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

[](#installation)

1. Add to your composer.json ` $ composer require illizian/notifications`
2. Add the Service Provider to your config/app.php file

```
'providers' => array(
    // [...]
    'Illizian\Notifications\NotificationsServiceProvider'
)
```

3. Update your User model

```
use Illizian\Notifications\Traits\NotificationableTrait;

class User extends Eloquent
{

    use NotificationableTrait;

    // [...]

}
```

*This package assumes your User model's classname is "User" - see [Configuration](#configuration) on how to override this*

4. Run the package migration ` $ php artisan migrate --package="illizian/notifications"`

Usage
-----

[](#usage)

The main Class for this package will be automatically aliased to 'Notify' for you, you can then use the class in your controllers to trigger notifications for a User:

```
$to = User::find(1);
$from = User::find(2);
$msg = 'User 2 has sent you a message';
$url = '/inbox/message'; // This should be a relative URL

Notify::send($to, $from, $msg, $url);
```

Then you can get the User's notifications from their model:

```
$notifications = User::find(1)->notifications;
```

When the User visits `/inbox/message` the package will detect this and mark the notification as read, alternatively you can manually mark the notification read by providing the notification's ID to the read function:

```
Notify::read(1)
```

Routes &amp; Views
------------------

[](#routes--views)

The package contains some basic routes &amp; views to get you started. The following routes are available:

PathDescription/notifications/mark\_as\_read/{id}Mark the notification {id} as read/notifications/api/allGet all User's notifications as JSON/notifications/api/unreadGet all User's unread notifications as JSON*the prefix can be changed - see [Configuration](#configuration)*Configuration
-------------

[](#configuration)

The package contains a basic configuration file. You can import the configuration by running:

` $ php artisan config:publish illizian\notifications`

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/703800?v=4)[Alex Barfield (nee. Scotton)](/maintainers/Illizian)[@Illizian](https://github.com/Illizian)

---

Top Contributors

[![Illizian](https://avatars.githubusercontent.com/u/703800?v=4)](https://github.com/Illizian "Illizian (14 commits)")

### Embed Badge

![Health badge](/badges/illizian-notifications/health.svg)

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

###  Alternatives

[maize-tech/laravel-email-domain-rule

Laravel Email Domain Rule

612.0k](/packages/maize-tech-laravel-email-domain-rule)[sarfraznawaz2005/noty

Laravel package to incorporate noty flash notifications into laravel.

324.5k](/packages/sarfraznawaz2005-noty)

PHPackages © 2026

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