Download the PHP package webware/webware-message without Composer
On this page you can find all versions of the php package webware/webware-message. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download webware/webware-message
More information about webware/webware-message
Files in webware/webware-message
Package webware-message
Short Description A Sessions backed flash messenger for Mezzio
License BSD-3-Clause
Homepage https://github.com/orgs/webinertia/discussions
Informations about the package webware-message
webware/webware-message
A sessions-backed flash messenger for Mezzio
applications. Provides PSR-15 middleware, a SystemMessengerInterface
service, and a view helper for rendering bootstrap-style toast messages.
Documentation
- Installation
- Configuration Reference
- Messenger
- Middleware
- View Helper
Quick Start
laminas/laminas-component-installer injects
Webware\Message\ConfigProvider automatically.
Middleware
Register Webware\Message\Http\Middleware\MessageMiddleware in the route pipeline
(after the session middleware):
Sending messages
The middleware exposes a Webware\Message\SystemMessenger instance as the
request attribute SystemMessengerInterface::class:
Hops semantics: send() defaults to one hop (next request), sendNow()
defaults to zero hops (current request only), and the level helpers
(success, danger, info, warning) default to the current request.
Rendering
The systemMessenger view helper renders bootstrap-style toasts for all
stored levels:
Available levels are MessageLevel::Success, MessageLevel::Danger,
MessageLevel::Warning, MessageLevel::Info, and MessageLevel::Message
(SSE base type).
Contributing
See CONTRIBUTING.md.
All versions of webware-message with dependencies
mezzio/mezzio-session Version ^1.17.0
mezzio/mezzio-session-ext Version ^1.21.0
webware/message-bus Version ^2.0.0-beta.1