If you find PHPFlasher useful, we would greatly appreciate your support in the form of a star rating ⭐ on GitHub or by sharing the project on Twitter click here. Your feedback helps us keep the package up-to-date and well-maintained. Thank you


Installation

Laravel:

composer require php-flasher/flasher-pnotify-laravel


Symfony:

composer require php-flasher/flasher-pnotify-symfony

Usage

#/ pnotify

namespace App\Controller;

class AppController
{
    public function save()
    {        
        pnotify()->addWarning('Your review may not have been posted.');
    }
} 

Modifiers

For more information on Pnotify options and usage, please refer to the original documentation at https://sciactive.com/pnotify/


The methods described in the Usage section can also be used with the pnotify adapter.


styling

What styling classes to use. (Can be either brighttheme, bootstrap3, fontawesome or a custom style object. See the source in the end of pnotify.js for the properties in a style object.)

pnotify()->styling(string $styling);

addClass

Additional classes to be added to the notice. (For custom styling.)

pnotify()->addClass(string $addClass);

cornerClass

Class to be added to the notice for corner styling.

pnotify()->cornerClass(string $cornerClass);

autoDisplay

Display the notice when it is created. Turn this off to add notifications to the history without displaying them.

pnotify()->autoDisplay(bool $autoDisplay = true);

timer

Delay in milliseconds before the notice is removed.

pnotify()->timer(int $timer);

mouseReset

Reset the hide timer if the mouse moves over the notice.

pnotify()->mouseReset(bool $mouseReset = true);

remove

Remove the notice’s elements from the DOM after it is removed.

pnotify()->remove(bool $remove = true);

insertBrs

Change new lines to br tags.

pnotify()->insertBrs(bool $insertBrs = true);

destroy

Whether to remove the notice from the global array when it is closed.

pnotify()->destroy(bool $destroy = true);
Younes

PHPFlasher is a project by Younes KHOUBZA.