, (*1)
SSystemMessage
Simple system messages for web-applications., (*2)
Install
composer require met_mw/ssystemmessage
Example
System messages
SystemMessage::i()
->addDanger('Error!')
->addInfo('Information.')
->addSuccess('Success!')
->addWarning('Warning!');
echo '<h1>System messages.</h1>';
SystemMessage::i()->printAll();
System messages with using session.
This method needs for send or print messages in any pages., (*3)
Attention! "SystemMessageSession::i()" or "session_start()" must be called before output started.
See session_start() documentation., (*4)
SystemMessageSession::i()
->addDanger('Error!')
->addInfo('Information.')
->addSuccess('Success!')
->addWarning('Warning!');
echo '
System messages with using session.
';
SystemMessageSession::i()->printAll();
License
The met-mw/SSystemMessage package is open-sourced software licensed under the MIT license, (*5)