PHPackages                             samkitano/laragrowl - 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. samkitano/laragrowl

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

samkitano/laragrowl
===================

Flash Notifications with jGrowl for Laravel

v1.0(9y ago)0175MITPHPPHP &gt;=5.5.9

Since Jun 12Pushed 9y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Laravel Flash Messages with jGrowl
==================================

[](#laravel-flash-messages-with-jgrowl)

[![Latest Version on Packagist](https://camo.githubusercontent.com/3e006976ec2ec33ea18184aaec6e81a1a75a1d43a73000b9ceecf58530be98f7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73616d6b6974616e6f2f6c61726167726f776c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/samkitano/laragrowl)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/9839289089d58443f8bbec64666c92061ea87c433f8366fdb6555d76b6c184aa/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f73616d6b6974616e6f2f6c61726167726f776c2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/samkitano/laragrowl)[![Total Downloads](https://camo.githubusercontent.com/b782f736ddfb68f8a7c3c73a3983cf17c0145129dffb1228875d8c29fbc93ee7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73616d6b6974616e6f2f6c61726167726f776c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/samkitano/laragrowl)

All the awesomeness and functionality of [jGrowl](https://github.com/stanlemon/jGrowl) made simple, for your Laravel project.

**jGrowl** is "an unobtrusive notification system for web applications", by [Stan Lemon](https://github.com/stanlemon). If you are not acquainted with this marvelous notification system, I encourage you to [pay a visit](https://github.com/stanlemon/jGrowl) and read the documentation.

I find this notification system to be *primus inter pares*. Very well documented and mantained, "unobtrusive" as advertised, lightweight, flexible, and easy to use. Since I constantly use it, particularly in the Admin sections of my projects, I wrote **Laragrowl** to easily include it in my Laravel apps.

The main goal of **Laragrowl**, rather than fully exploit **jGrowl**'s capabilities, is to provide an out-of-the-box, easy-to-use, consistent notification system within Laravel. I believe this is fully achieved with single-liners like `Laragrowl::success('Your model has been updated');`.

Furthermore, with Laravel's awesome ability to use Aliases for the facades, you can even "rename" **Laragrowl** into something like **Notify** or **Inform**. I.e. `Inform::error('Validation Failed')`. Whatever suits your taste.

Requirements
------------

[](#requirements)

```
-Laravel >= 5.2.X
-PHP >= 5.6
-jQuery >= 1.9.0

```

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

[](#installation)

1 - Require with Composer: `composer require samkitano/laragrowl`

2 - Include the service provider in the 'providers' array within `config/app.php`.

```
'providers' => [
    Kitano\Laragrowl\LaragrowlServiceProvider::class,
];
```

3 - Scroll down `config/app.php` and add an alias of your convenience (i.e. 'Notify') for the facade:

```
'aliases' => [
    'Notify' => Kitano\Laragrowl\Laragrowl::class,
];
```

3 - At this point, you must decide whether to **a)** download jGrowl; **b)** use a [CDN](https://cdnjs.com/libraries/jquery-jgrowl); or **c)** publish the included version of jGrowl (1.4.5)

**a)** Download jGrowl, copy the files to a directory of your convenience and include them in your template:

```
DOCTYPE html>

        ...

        ...

        ...

        ...

```

**b)** Using a CDN:

```
DOCTYPE html>

      ...

	  ...

        ...

        ...

```

If you decide to **download**, or to use a **CDN**, you'll have to provide your own styling for the notifications. A basic theme is included in this package in `src\assets\css\jquery.jgrowl.theme.css` Feel free to use it "as is", or as a boilerplate to suit your own needs.

**c)** Publish included **jGrowl** version:

```
php artisan vendor:publish --provider="Kitano\Laragrowl\LaragrowlServiceProvider" --tag=assets
```

4 - Include the CSS files within your master template `` section, and the core jGrowl script file right before the closing `` tag.

```
DOCTYPE html>

        Laragrowl

```

5 - Publish the message view:

```
php artisan vendor:publish --provider="Kitano\Laragrowl\LaragrowlServiceProvider" --tag=views
```

6 - Include the view after the jGrowl `` tag in your master template:

```

		@include('vendor.laragrowl.message')

```

**REMEMBER:** jGrowl is a jQuery plugin, so you MUST have jQuery loaded **before** your jGrowl source.

If you are comfortable with elixir, and/or you like to master your own assets, you know what to do next.

By all means, feel free to modify the provided view `resources\vendor\laragrowl\message.blade.php` to fit your own requirements.

Usage
-----

[](#usage)

*Where?* Where you'd usually place a `Session::flash('important message')`.

*How?* You can either use the facade `Laragrowl::message` or the alias you have provided (if so):

```
// Examples
public function store()
{
	...

	// PICK YOUR FLAVOUR

	// With an Alias, like "Notify"
	Notify::message('Your stuff has been stored.', 'success');

	// With the Facade
	Laragrowl::message('Your stuff has been stored', 'success');

	// Using available methods to declare the message type
	Laragrowl::default('Your stuff has been stored');
	Laragrowl::success('Your stuff has been stored');
	Laragrowl::error('Your stuff was NOT stored');
	Laragrowl::warning('Your form contains errors, check fields');
	Laragrowl::info('You have a neww message');

	...
}
```

### Methods

[](#methods)

MethodArgumentsDescriptionExample::message`message`, `type`, `header`, `sticky`, `life`, `group`Displays a notification according to parameters. If `type` is not provided, theme will be "default".Laragrowl::message('Welcome, User!', 'default', 'HI THERE')::default`message`, `header`, `sticky`Displays a "default" themed notification.Laragrowl::default('Welcome, User!');::info`message`, `header`, `sticky`Displays an "info" themed notification. Ideal for quickly provide an informational message.Laragrowl::info('Please fill out this form')::success`message`, `header`, `sticky`Displays a "success" themed notification. Ideal for quickly provide a success message.Laragrowl::success('Data Saved!', 'SUCCESS!')::warning`message`, `header`, `sticky`Displays a "warning" themed notification. Ideal for quickly provide a warning message.Laragrowl::warning('FYI: Third party service is not available at this time.', 'HEY!')::error`message`, `header`, `sticky`Displays an "error" themed notification. Ideal for quickly provide an error message.Laragrowl::error('Validation Failed! Please correct form erros', 'ERROR', 'sticky')### Arguments

[](#arguments)

ArgumentTypeDefault valueDescription`message`StringThe message to display.`type`String'success'The default theme for messages. Available: 'default', 'info', 'success', 'warning' and 'error'.`header`String''The message prefix, i.e. 'Error'.`sticky`Boolean or StringFalseWeather or not the message will display forever until closed.`life`Integer or String6000Lifetime of a non-sticky message, in milisseconds.`group`String''An extra CSS selector useful to group messages.---

License
-------

[](#license)

Laragrowl is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3619d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a908977767e37d7cac5f21a58dc9a426a2055e2428df7d26b3a096325cab7f58?d=identicon)[SamKitano](/maintainers/SamKitano)

---

Top Contributors

[![samkitano](https://avatars.githubusercontent.com/u/2251400?v=4)](https://github.com/samkitano "samkitano (13 commits)")

---

Tags

laravelnotificationsjgrowl

### Embed Badge

![Health badge](/badges/samkitano-laragrowl/health.svg)

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

###  Alternatives

[edvinaskrucas/notification

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

520393.9k10](/packages/edvinaskrucas-notification)[sarfraznawaz2005/laravel-sse

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

474.6k](/packages/sarfraznawaz2005-laravel-sse)[usamamuneerchaudhary/filament-notifier

A powerful notification system for FilamentPHP that handles multi-channel notifications with template management, scheduling, and real-time delivery. Built for developers who need enterprise-grade notifications without the complexity.

321.1k](/packages/usamamuneerchaudhary-filament-notifier)

PHPackages © 2026

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