met_mw / ssystemmessage
Simple system message library for web-applications.
v1.0.0
2016-06-30 09:06 UTC
Requires
- php: >=5.6.0
Requires (Dev)
- phpunit/phpunit: ^5.4
- satooshi/php-coveralls: dev-master
This package is not auto-updated.
Last update: 2024-11-09 19:45:56 UTC
README
SSystemMessage
Simple system messages for web-applications.
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.
Attention! "SystemMessageSession::i()" or "session_start()" must be called before output started. See session_start() documentation.
SystemMessageSession::i() ->addDanger('Error!') ->addInfo('Information.') ->addSuccess('Success!') ->addWarning('Warning!'); echo '<h1>System messages with using session.</h1>'; SystemMessageSession::i()->printAll();
License
The met-mw/SSystemMessage package is open-sourced software licensed under the MIT license