定制 linkorb/notifier 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

linkorb/notifier

Composer 安装命令:

composer require linkorb/notifier

包简介

Notifier, direct notifications.

README 文档

README

Build Status

Notifier acts as a notification center.

Recipients will only receive the messages they signed up for.

Usage

<?php

$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'));

$notifier->sendMessage($message);

Current state

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

Handlers

  • 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)

License

Notifier is licensed under the MIT license.

统计信息

  • 总下载量: 57
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-05-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固