PHP Flasher

PHPFlasher.

A powerful and flexible flash notifications system for PHP
With Symfony and Laravel implementations

Docs GitHub Twitter Linkedin

Sponsors Backers

Why use PHP Flasher ?

This library is designed, so you can take full control when creating you notifications :
  • Display multiple notifications
  • Sort and filter notifications
  • Render notification from JSON response with Ajax or Websockets
  • Limit the number of displayed notifications
  • Show notifications from different adapters at the same time
  • Framework agnostic with integration for : Symfony and Laravel
  • ...and more
Notifications
Flasher usage

Easy To use to fit your taste

This library was developed with the idea that you should be able to add flash notification to your application easily with few lines of code.

inject the Flasher service and show a default notification library, or choose a specific one by calling the create(string $library) method.

Build you notification and add options to it using the default notification builder or specific library builder, several builders exists to provide the assistance needed when creating your notifications.

you can also add custom information to your notification with stamps:
The library is accompanied by some stamps out of the box :

Render you notifications

PHP Flasher make it very easy to render you notifications just by adding a simple line of code.

You don't have to worry about importing you javascript or stylesheets, Flasher handle this for you, and it only adds the needed files when notifications are ready to be rendered to the browser

You can customize how you want to display you notifications: Limit the number of displayed notifications, order them and also filter them how you want with stamps, of course you can add your on logic here.

Render Notifications

Is it all :( ?

Naaah!!! of course there is a lot more of goodies, Flasher is very powerful and flexible it allows you to do more advanced things :

Younes KHOUBZA

PHP Flasher is a project by Younes KHOUBZA.