wpdiggerstudio/wpzylos-notification
Composer 安装命令:
composer require wpdiggerstudio/wpzylos-notification
包简介
Multi-channel notification system for WPZylos Framework
README 文档
README
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
其他信息
- 授权协议: MIT
- 更新时间: 2026-06-14