| Recommend this page to a friend! | 
|  Download | 
| Info | Documentation |  Files |  Install with Composer |  Download | Reputation | Support forum | Blog | Links | 
| Ratings | Unique User Downloads | Download Rankings | ||||
| Not yet rated by the users | Total: 53 | All time:  10,652 This week: 455  | ||||
| Version | License | PHP version | Categories | |||
| messages 1.0.0 | The PHP License | 5 | HTML, PHP 5, User Management | 
| Description | Author | |
| This package can store and display messages to show to site users. | 

$ composer require dframe/messages
$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
Open-sourced software licensed under the MIT license
|  Files (9) | 
| File | Role | Description | ||
|---|---|---|---|---|
|  build (1 file) | ||||
|  docs (1 directory) | ||||
|  src (1 file) | ||||
|  tests (2 files) | ||||
|    .travis.yml | Data | Auxiliary data | ||
|    composer.json | Data | Auxiliary data | ||
|    phpunit.xml | Data | Auxiliary data | ||
|    README.md | Doc. | Documentation | ||
|  Files (9) | / | tests | 
| File | Role | Description | 
|---|---|---|
|  Bootstrap.php | Class | Class source | 
|  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 | 
| Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
| 100% | 
 | 
 | 
| Applications that use this package | 
 If you know an application of this package, send a message to the author to add a link here.
 If you know an application of this package, send a message to the author to add a link here.