PHP Flash Messages

After more than three years since its original release, I’ve finally found the time to properly update my old PHP Session-Based Flash Messages class. This updated version brings PSR-4 autoload compliance, Bootstrap compatibility, namespaces, sticky messages, and more!

Features

PHP-Flash-Messages provides a simple way store messages in the session data, allowing them to be retrieved at a later time. Some notable features include:

  • Namespaced
  • PSR-4 autoload compliant
  • Installable with composer
  • Works with Bootstrap
  • Fully customizable messages
  • Sticky messages

Installation

With Composer

Without Composer

Download FlashMessages.php and save it to your project directory.

Import the file:

Basic Usage

Documentation

Full documentation is available at http://mikeeverhart.net/php-flash-messages/.

Leave a Reply

Your email address will not be published. Required fields are marked *