PHP Classes

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

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 53 All time: 10,641 This week: 455Up
Version License PHP version Categories
messages 1.0.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: 16 packages by
Country: Poland Poland
Age: ???
All time rank: 230953 in Poland Poland
Week rank: 49 Up1 in Poland Poland Up
Innovation award
Innovation award
Nominee: 3x

Winner: 1x

Documentation

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 (9)  
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 (9)  /  build  
File Role Description
  Accessible without login Plain text file report.junit.xml Data Auxiliary data

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

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

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

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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:53
This week:0
All time:10,641
This week:455Up