PHPackages                             nicoaudy/noty - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. nicoaudy/noty

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

nicoaudy/noty
=============

Elegant Flash Message Wrapper For Laravel

1.0.1(5y ago)3966MITPHPPHP &gt;=5.6.0

Since Jul 16Pushed 4y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (3)Versions (7)Used By (0)

Elegant Flash Message Wrapper For Laravel
=========================================

[](#elegant-flash-message-wrapper-for-laravel)

[![License](https://camo.githubusercontent.com/a0ce6c0923180c06d988a126ef0154530f08a4f030b2bcf0283fc3e5220ece1c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6e69636f617564792f6c61726176656c2d6e6f74793f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nicoaudy/noty)[![Latest Version on Packagist](https://camo.githubusercontent.com/f6ab3d21ba969eee8c0c121bd85308a1da0506d24e979afa085843ed6779d2b2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e69636f617564792f6e6f74792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nicoaudy/noty)[![Total Downloads](https://camo.githubusercontent.com/0d6c2eeba21c874f631996722c412d31b6561f65e566cd7e21a4dce53a690f24/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e69636f617564792f6e6f74792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nicoaudy/noty)

This is a elegant and configurable notify package to send flash messages in Laravel apps. A flash message is a message that is carried over to the next request by storing it in the session.

[![Screenshot](./screenshots/noty-screenshot.png "Screenshot")](./screenshots/noty-screenshot.png)

This is how it can be used:

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

[](#installation)

You can install the package via composer:

```
composer require nicoaudy/noty
```

You can publish the config file with:

```
php artisan vendor:publish --provider="Nicoaudy\Noty\NotyServiceProvider"
```

This is the contents of the published config file:

```
return [
    /*
    * Title configuration color
    */
    'titleColor' => '',

    /*
    * Title configuration size
    */
    'titleSize' => '',

    /*
    * Title configuration line hight
    */
    'titleLineHeight' => '',

    /*
    * Message configuration color
    */
    'messageColor' => '',

    /*
    * Message configuration size
    */
    'messageSize' => '',

    /*
    * Message configuration line hight
    */
    'messageLineHeight' => '',

    /*
     * Positions:  bottomRight, bottomLeft, topRight, topLeft, topCenter, bottomCenter, center
     */
    'position' => 'topRight',

    /*
     * Themes:  light, dark
     */
    'theme' => 'light',

    /*
     * Layout:  1 (title inline with message), 2 (title on top of message)
     */
    'layout' => 1,

    /*
    * [integer|boolean] - Delay for closing event in milliseconds. Set false for sticky notifications.
    */
    'timeout' => 4000,

    /*
     * [boolean] - Displays a progress bar.
     */
    'progressBar' => true,

    /*
     * [string] - Progress bar color
     */
    'progressBarColor' => 'rgb(0, 255, 184)',

    /*
     * [string] - Progress bar linear / ease
     */
    'progressBarEasing' => 'linear',

    /*
     * [boolean] - Balloon
     */
    'balloon' => true,

    /*
     * [boolean] - enable to close?
     */
    'close' => true,

    /*
     * [boolean] - Close on click
     */
    'closeOnClick' => false,

    /*
     * [boolean] - Close on escape?
     */
    'closeOnEscape' => false,

    /*
     * Animate inside
     */
    'animateInside' => true, // bool

    /*
     * Enable drag for close
     */
    'drag' => true, // bool

    /*
     * Pause on hover
     */
    'pauseOnHover' => true, // bool

    /*
     * Reset on hover
     */
    'resetOnHover' => false, // bool

    /*
     * [string] - Transition In
     * Default toast open animation. It can be: bounceInLeft, bounceInRight, bounceInUp, bounceInDown, fadeIn, fadeInDown, fadeInUp, fadeInLeft, fadeInRight or flipInX.
     */
    'transitionIn' => 'fadeInUp',

    /*
     * [string] - Transition Out
     * Default toast close animation. It can be: fadeOut, fadeOutUp, fadeOutDown, fadeOutLeft, fadeOutRight, flipOutX
     */
    'transitionOut' => 'fadeOut',

    /*
     * [string] - Transition In Mobile
     */
    'transitionInMobile' => 'fadeInUp',

    /*
     * [string] - Transition Out Mobile
     */
    'transitionOutMobile' => 'fadeOutDown',
];
```

Because flash messages are so common, we provide a template out of the box to get you started. Place this before end of the body tag.

```
    {{ noty_assets() }}

```

Usage
-----

[](#usage)

Within your controllers, before you perform a redirect, make a call to the noty() function.

```
public function store()
{
    noty()->flash('Cool', 'Your data has been saved');

    return home();
}
```

You may also do:

```
noty()->flash('Hey!', 'This is message');
noty()->info('Hey!', 'This is message');
noty()->success('Hey!', 'This is message');
noty()->warning('Hey!', 'This is message');
noty()->danger('Hey!', 'This is message');
```

With this message flashed to the session, you may now display it in your view(s).

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Nico Audy](https://github.com/NicoAudy)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Every ~0 days

Total

2

Last Release

2133d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9941c23ad97bc5b3f5d7051f784b6feb09c8b0a82668d3f715bab119422ce077?d=identicon)[NicoAudy](/maintainers/NicoAudy)

---

Top Contributors

[![nicoaudy](https://avatars.githubusercontent.com/u/9676457?v=4)](https://github.com/nicoaudy "nicoaudy (32 commits)")

---

Tags

notynicoaudy

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/nicoaudy-noty/health.svg)

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

###  Alternatives

[realrashid/sweet-alert

Laravel Sweet Alert Is A Package For Laravel Provides An Easy Way To Display Alert Messages Using The SweetAlert2 Library.

1.2k2.9M21](/packages/realrashid-sweet-alert)[sphpdox/sphpdox

PHPDoc to Sphinx phpdomain tool

4817.2k8](/packages/sphpdox-sphpdox)

PHPackages © 2026

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