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!


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


With Composer

Without Composer

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

Import the file:

Basic Usage


Full documentation is available at

Leave a Reply

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

×Mike Everhart

Need Some More Help? Let's Talk!

I'd love to work with you! Fill out the form below to schedule a free consultation to discuss your needs and how I can help.

Need More Help?