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

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

qdev1000/laravel-notify
=======================

Elegant notifications to laravel with Toastr or PNotify

01.2kCSS

Since Jan 7Pushed 5y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Notify
==============

[](#laravel-notify)

Elegant notifications to laravel with [Toastr](https://github.com/CodeSeven/toastr) or [PNotify](https://github.com/sciactive/pnotify)

[![alt text](https://camo.githubusercontent.com/350dd96f4c18768638d842e23745559032b247e6d3a5691ffde925e0430e7264/68747470733a2f2f692e696d6775722e636f6d2f5474314c3642742e706e67)](https://camo.githubusercontent.com/350dd96f4c18768638d842e23745559032b247e6d3a5691ffde925e0430e7264/68747470733a2f2f692e696d6775722e636f6d2f5474314c3642742e706e67)

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

[](#installation)

1. Either run `composer require helmesvs/laravel-notify` or add `"helmesvs/laravel-notify"` to the `require` key in `composer.json` and run `composer install`.
2. Add `Helmesvs\Notify\NotifyServiceProvider::class,` to the `providers` key in `config/app.php`.
3. Add `'Notify' => Helmesvs\Notify\Facades\Notify::class,` to the `aliases` key in `config/app.php`.
4. Run `php artisan vendor:publish --provider="Helmesvs\Notify\NotifyServiceProvider" --tag="notify"` to publish the config file.
5. Include the output `{!! Notify::render() !!}` in your master view template.
6. *Optional*: Modify the configuration file located in config/notify.php.

Usage
-----

[](#usage)

Call one of these methods in your controllers to insert a notification:

- `Notify::warning($message, $title = null, $options = [])` - add a warning notification
- `Notify::error($message, $title = null, $options = [])` - add an error notification
- `Notify::info($message, $title = null, $options = [])` - add an info notification
- `Notify::success($message, $title = null, $options = [])` - add a success notification
- `Notify::add($type: warning|error|info|success, $message, $title = null, $options = [])` - add a notification
- **`Notify::clear()` - clear all current notification**

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

[](#configuration)

Open `config/notify.php` to adjust package configuration. If this file doesn't exist, run `php artisan vendor:publish --provider="Helmesvs\Notify\NotifyServiceProvider" --tag="notify"` to create the default configuration file.

### General Options

[](#general-options)

```
'options' => [
        'lib' => 'toastr',
        'style' => 'custom'
]
```

Set `'lib'` as `toastr` to use [toastr.js](https://github.com/CodeSeven/toastr) or `pnotify` to use [pnotify.js](https://github.com/sciactive/pnotify).

Set `'style'` to `'custom'` to use custom settings, or as `'default'` to default library settings.

The style of notifications can be customized in `public/vendor/Notify/style.css`.

### Options Toastr

[](#options-toastr)

```
'ToastrOptions' => [
        "closeButton" => false,
        "closeHtml" => '',
        "newestOnTop" => true,
        "progressBar" => false,
        ...
]
```

### Options PNotify

[](#options-pnotify)

```
'PNotifyOptions' => [
        'title_escape' => false,
        'text_escape' => false,
        'styling' => 'brighttheme',
        'addclass' => '',
        ...
]
```

For a list of available options, see [toastr.js' documentation](https://github.com/CodeSeven/toastr) and [pnotify.js' documentation](https://github.com/sciactive/pnotify).

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 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://www.gravatar.com/avatar/87508b1fee5ef6ed903013cc5eb18afbb4c124e720663a20ec209541a9dbdabe?d=identicon)[qdev1000](/maintainers/qdev1000)

---

Top Contributors

[![Kennguyen3](https://avatars.githubusercontent.com/u/69205419?v=4)](https://github.com/Kennguyen3 "Kennguyen3 (2 commits)")

### Embed Badge

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

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

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M228](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[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)
