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

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

laravilt/notifications
======================

Complete notification system with toast messages, colors, icons, and actions. Display beautiful toast notifications with success, danger, warning, and info states. Supports dismissible notifications, custom durations, and action buttons.

1.0.5(5mo ago)0297↓31.4%[3 PRs](https://github.com/laravilt/notifications/pulls)1MITHTMLPHP ^8.3|^8.4CI passing

Since Dec 11Pushed 5mo agoCompare

[ Source](https://github.com/laravilt/notifications)[ Packagist](https://packagist.org/packages/laravilt/notifications)[ GitHub Sponsors](https://github.com/fadymondy)[ RSS](/packages/laravilt-notifications/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (13)Versions (10)Used By (1)

[![Notifications](https://raw.githubusercontent.com/laravilt/notifications/master/arts/screenshot.jpg)](https://raw.githubusercontent.com/laravilt/notifications/master/arts/screenshot.jpg)

Laravilt Notifications
======================

[](#laravilt-notifications)

[![Latest Stable Version](https://camo.githubusercontent.com/78faf203d28e7f749c86b99a98b0b47976d4c49d81c4419f8060b1e031ea6d8e/68747470733a2f2f706f7365722e707567782e6f72672f6c61726176696c742f6e6f74696669636174696f6e732f76657273696f6e2e737667)](https://packagist.org/packages/laravilt/notifications)[![License](https://camo.githubusercontent.com/7c050604a001bc595d77c7ceda794ae232eff8f8cbd29755a87e271c77057290/68747470733a2f2f706f7365722e707567782e6f72672f6c61726176696c742f6e6f74696669636174696f6e732f6c6963656e73652e737667)](https://packagist.org/packages/laravilt/notifications)[![Downloads](https://camo.githubusercontent.com/7af6cd7c80196a377cd976163c646f17501ae68e42206797970d992672dda052/68747470733a2f2f706f7365722e707567782e6f72672f6c61726176696c742f6e6f74696669636174696f6e732f642f746f74616c2e737667)](https://packagist.org/packages/laravilt/notifications)[![Dependabot Updates](https://github.com/laravilt/notifications/actions/workflows/dependabot/dependabot-updates/badge.svg)](https://github.com/laravilt/notifications/actions/workflows/dependabot/dependabot-updates)[![PHP Code Styling](https://github.com/laravilt/notifications/actions/workflows/fix-php-code-styling.yml/badge.svg)](https://github.com/laravilt/notifications/actions/workflows/fix-php-code-styling.yml)[![Tests](https://github.com/laravilt/notifications/actions/workflows/tests.yml/badge.svg)](https://github.com/laravilt/notifications/actions/workflows/tests.yml)

Complete notification system with toast messages, colors, icons, and actions for Laravilt. Display beautiful toast notifications with success, danger, warning, and info states. Supports dismissible notifications, custom durations, and action buttons.

Features
--------

[](#features)

- 🎨 **Multiple States** - Success, danger, warning, info, and custom states
- 🎯 **Customizable** - Title, body, icon, color, and duration
- ✨ **Actions** - Add custom action buttons to notifications
- ⏱️ **Auto-dismiss** - Configurable duration with manual dismiss option
- 🔔 **Icon Support** - Heroicons and Lucide icon integration
- 📱 **Responsive** - Beautiful toast notifications on all devices
- ⚡ **Helper Functions** - Global notification helpers for easy use

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

[](#installation)

```
composer require laravilt/notifications
```

The package will automatically register its service provider.

Quick Start
-----------

[](#quick-start)

```
use Laravilt\Notifications\Notification;

// Success notification
Notification::success()
    ->title('Success!')
    ->body('User created successfully')
    ->send();

// Danger notification
Notification::danger()
    ->title('Error!')
    ->body('Something went wrong')
    ->send();

// Warning notification
Notification::warning()
    ->title('Warning!')
    ->body('Please check your input')
    ->send();

// Info notification
Notification::info()
    ->title('Info')
    ->body('New update available')
    ->send();

// Custom notification
Notification::make()
    ->title('Custom Notification')
    ->body('This is a custom notification')
    ->icon('bell')
    ->color('purple')
    ->duration(5000)
    ->dismissible()
    ->send();
```

Helper Functions
----------------

[](#helper-functions)

```
// Global helper functions
notify()->success('User created successfully');
notify()->danger('Something went wrong');
notify()->warning('Please check your input');
notify()->info('New update available');

// With title and body
notify()->success(
    title: 'Success!',
    body: 'User created successfully'
);

// Custom notification
notify()
    ->title('Custom')
    ->body('Message')
    ->icon('bell')
    ->color('primary')
    ->send();
```

Available Methods
-----------------

[](#available-methods)

- `title(string $title)` - Set notification title
- `body(string $body)` - Set notification body/message
- `icon(string $icon)` - Set notification icon
- `color(string $color)` - Set notification color
- `duration(int $milliseconds)` - Set auto-dismiss duration
- `dismissible(bool $dismissible = true)` - Make notification dismissible
- `status(string $status)` - Set notification status
- `actions(array $actions)` - Add action buttons
- `send()` - Send the notification

Available States
----------------

[](#available-states)

- `success()` - Success state (green)
- `danger()` - Danger/error state (red)
- `warning()` - Warning state (orange)
- `info()` - Info state (blue)

Available Colors
----------------

[](#available-colors)

- `success` - Green
- `danger` - Red
- `warning` - Orange
- `info` - Blue
- `primary` - Primary brand color
- `secondary` - Secondary color

Configuration
-------------

[](#configuration)

Publish the config file:

```
php artisan vendor:publish --tag="laravilt-notifications-config"
```

Assets
------

[](#assets)

Publish the plugin assets:

```
php artisan vendor:publish --tag="laravilt-notifications-assets"
```

Views
-----

[](#views)

Publish the views:

```
php artisan vendor:publish --tag="notifications-views"
```

Migrations
----------

[](#migrations)

Publish the migrations:

```
php artisan vendor:publish --tag="notifications-migrations"
```

Frontend Integration (Vue 3)
----------------------------

[](#frontend-integration-vue-3)

The notifications are automatically available in your Inertia.js pages via the shared data.

```

import NotificationContainer from '@/components/NotificationContainer.vue'

```

Testing
-------

[](#testing)

```
composer test
```

Code Style
----------

[](#code-style)

```
composer format
```

Static Analysis
---------------

[](#static-analysis)

```
composer analyse
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance73

Regular maintenance activity

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 96.4% 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 ~1 days

Total

6

Last Release

150d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2147eb2fca7ab5f0124d0fafd88ba2d2a5dfa3a0036fb8872d1084b7cba29366?d=identicon)[fadymondy](/maintainers/fadymondy)

---

Top Contributors

[![fadymondy](https://avatars.githubusercontent.com/u/11937812?v=4)](https://github.com/fadymondy "fadymondy (27 commits)")[![actions-user](https://avatars.githubusercontent.com/u/65916846?v=4)](https://github.com/actions-user "actions-user (1 commits)")

---

Tags

laravelnotificationsinertiaalertsmessagesvuetoastlaravilt

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[edvinaskrucas/notification

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

520393.9k10](/packages/edvinaskrucas-notification)[ascsoftw/livewire-toast

Livewire Package to display Toast Notifications

48544.2k1](/packages/ascsoftw-livewire-toast)

PHPackages © 2026

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