Notifier, direct notifications.

0.3.0 2013-02-25 22:23 UTC

This package is auto-updated.

Last update: 2022-04-29 00:32:03 UTC


Build Status

Notifier acts as a notification center.

Recipients will only receive the messages they signed up for.



$notifier = new Notifier\Notifier();
$notifier->pushProcessor(function($message) {
    $recipients = $message->getRecipients();
    // only set the filters just before sending.
    foreach ($recipients as &$recipient) {
        if ($recipient->getData() == 'Dries') {
            $recipient->addType('test', 'var_dump');
    return $message;
$notifier->pushHandler(new Notifier\Handler\VarDumpHandler(array('test', 'mailing')));

$message = new Notifier\Message\Message('test');
$message->addRecipient(new Notifier\Recipient\Recipient('Dries'));


Current state

The project is still in development and is not yet suited for production environments.


  • MailHandler: Send the message via mail.
  • SwiftMailerHandler: Send the message using Swift Mailer.
  • ProwlAppHandler: Send the message to iOS using Prowl.
  • PushoverHandler: Send the message to iOS/android using Pushover.
  • NullHandler: Ignore the message completely.
  • VarDumpHandler: Send the output to the screen. (For debugging)


Notifier is licensed under the MIT license.