wpdiggerstudio/wpzylos-notification 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

wpdiggerstudio/wpzylos-notification

Composer 安装命令:

composer require wpdiggerstudio/wpzylos-notification

包简介

Multi-channel notification system for WPZylos Framework

README 文档

README

Latest Version License PHP Version

Multi-channel notification system for the WPZylos framework. Send notifications through mail, database, and admin notice channels simultaneously using a clean dispatcher pattern.

Installation

composer require wpdiggerstudio/wpzylos-notification

Quick Start

use WPZylos\Framework\Notification\Notification;
use WPZylos\Framework\Notification\Channels\MailChannel;
use WPZylos\Framework\Notification\Channels\DatabaseChannel;
use WPZylos\Framework\Notification\Messages\MailMessage;

class OrderShippedNotification extends Notification
{
    public function via(): array
    {
        return [MailChannel::class, DatabaseChannel::class];
    }

    public function toMail(): MailMessage
    {
        return (new MailMessage())
            ->subject('Your order has shipped!')
            ->line('Your order #' . $this->data['order_id'] . ' is on its way.');
    }
}

// Send notification
$manager = $container->get(NotificationManager::class);
$manager->send($user, new OrderShippedNotification(['order_id' => 123]));

Documentation

Full documentation available at wpzylos.com/docs.

Requirements

  • PHP >= 8.0
  • WordPress >= 6.0

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for details.

Support the Project

If WPZylos helps your development workflow, consider supporting the project:

License

GPL-2.0-or-later. See LICENSE for details.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固