Download the PHP package stof/stampie-extra without Composer
On this page you can find all versions of the php package stof/stampie-extra. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download stof/stampie-extra
More information about stof/stampie-extra
Files in stof/stampie-extra
Package stampie-extra
Short Description Event-based plugin for stampie/stampie
License MIT
Homepage https://github.com/Stampie/extra
Informations about the package stampie-extra
Stampie Extra
StampieExtra provides an event-based extension point for Stampie. It uses the Symfony EventDispatcher component.
Usage
The Stampie Extra mailer wraps your Stampie mailer to provides extension points in the sending process.
The mailer will then dispatch the stampie.pre_send
event before sending
the message, allowing you to apply some changes.
Built-in listeners
ImpersonateListener
The ImpersonateListener allows you to replace the recipient of the mail during
development to send all messages to a single email address. It will add a
X-Stampie-To
header containing the original recipient.
LoggerListener
The LoggerListener allows you to log sent emails. It expects a logger implementing the PSR-3 LoggerInterface.
SpoolMailer
Stampie Extra also provides a SpoolMailer storing the messages in memory and sending them when flushing the queue.
Testing
Stampie Extra is Continuous Integration tested with Travis and aims for a high coverage percentage.
All versions of stampie-extra with dependencies
stampie/stampie Version ^1.0
symfony/event-dispatcher Version ^2.3 || ^3.0 || ^4.0 || ^5.0