met_mw / ssystemmessage
Simple system message library for web-applications.
Installs: 101
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/met_mw/ssystemmessage
Requires
- php: >=5.6.0
Requires (Dev)
- phpunit/phpunit: ^5.4
- satooshi/php-coveralls: dev-master
This package is not auto-updated.
Last update: 2025-09-28 00:45:31 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