Dframe PHP Messages System: Store and display messages to show to site users

Recommend this page to a friend!
  Info   View files Documentation   View files View files (9)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2021-08-14 (27 days ago) RSS 2.0 feedNot yet rated by the usersTotal: 46 This week: 2All time: 10,121 This week: 88Up
Version License PHP version Categories
messages 1.0The PHP License5HTML, PHP 5, User Management
Description Author

This package can store and display messages to show to site users.

It can take a cache class object as a parameter and store messages meant to be displayed to certain site users.

The package can also retrieve any previously stored messages for the current user and displays the messages on the current page.

Picture of Slawomir Kaleta
  Performance   Level  
Name: Slawomir Kaleta <contact>
Classes: 14 packages by
Country: Poland Poland
Innovation award
Innovation award
Nominee: 2x

Details

Dframe/Sesssion - Component

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

php framework dframe logo

Composer

$ composer require dframe/messages

Standalone


$driver = new \Dframe\Component\Session\Session('sessionName');

/
 * $driver Can be any class implements interface \Psr\SimpleCache\CacheInterface 
 */
$messages  = new \Dframe\Component\Messages\Messages($driver); 
$messages->add('info', 'String Information.');  // types ['help', 'info', 'warning', 'error', 'success']
$messages->hasMessages('info');                 // Check to see if there are any ($type) messages queued.
$messages->hasErrors();                         // true There ARE error messages false There are NOT any error messages
$messages->display('all');                      // Return true/false

License

Open-sourced software licensed under the MIT license

  Files folder image Files  
File Role Description
Files folder imagebuild (1 file)
Files folder imagedocs (1 directory)
Files folder imagesrc (1 file)
Files folder imagetests (2 files)
Accessible without login Plain text file .travis.yml Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  build  
File Role Description
  Accessible without login Plain text file report.junit.xml Data Auxiliary data

  Files folder image Files  /  docs  
File Role Description
Files folder imageextensions (1 file)

  Files folder image Files  /  docs  /  extensions  
File Role Description
  Accessible without login Plain text file Messages.md Data Auxiliary data

  Files folder image Files  /  src  
File Role Description
  Plain text file Messages.php Class Class source

  Files folder image Files  /  tests  
File Role Description
  Plain text file Bootstrap.php Class Class source
  Plain text file MessagesTest.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:46
This week:2
All time:10,121
This week:88Up
For more information send a message to info at phpclasses dot org.