# Michel PHP Flash PHP Flash is a lightweight library for managing message flash functionality in PHP applications. It allows you to easily display temporary messages, such as success messages, warnings, and error notifications, to enhance the user experience. ## Features - Simple and intuitive message flash management. - Display success messages, warnings, and error notifications. - Automatic clearing of messages after retrieval. ## Installation To install PHP Flash, use [Composer](https://getcomposer.org/): ```bash composer require michel/flash ``` ## Usage ### Basic Usage ```php use Michel\Flash\Flash; // Assuming you already have session_start() called in your script $flash = new Flash($_SESSION); // Set flash messages $flash->set('success', 'Operation completed successfully.'); $flash->set('error', 'An error occurred.'); // OR $flash->success('Operation completed successfully.'); $flash->error('An error occurred.'); // Get and display flash messages if ($message = $flash->get('success')) { echo '