This library adds standard php mail integration to Notifier.
use Notifier\Mail\ParameterBag\MailMessageParameterBag;
use Notifier\Mail\ParameterBag\MailRecipientParameterBag;
use Notifier\Recipient\Recipient;
use Notifier\Message\Message;
use Notifier\Notifier;
$message = new Message(new InformationType());
$message->addParameterBag(new MailMessageParameterBag('Mail subject', 'Body...'));
$recipient = new Recipient();
$recipient->addParameterBag(new MailRecipientParameterBag('[email protected]'));
// The ChannelResolver will decide to which channels a message of a specific type must be sent.
$notifier = new Notifier(new ChannelResolver());
$notifier->sendMessage($message, array($recipient));
All code contributions - including those of people having commit access - must go through a pull request and approved by a core developer before being merged. This is to ensure proper review of all the code.
Fork the project, create a feature branch, and send us a pull request.
To ensure a consistent code base, you should make sure the code follows the Coding Standards which we borrowed from Symfony. Make sure to check out php-cs-fixer as this will help you a lot.
If you would like to help take a look at the list of issues.
Dries De Peuter - [email protected] - http://nousefreak.be
See also the list of contributors who participated in this project.
Notifier and it's extensions are licensed under the MIT license.