nkamuo/notification-tracker-bundle
Composer 安装命令:
composer require nkamuo/notification-tracker-bundle
包简介
[EXPERIMENTAL] Notification and email tracking bundle for Symfony with webhook support - DO NOT USE IN PRODUCTION
README 文档
README
⚠️ EXPERIMENTAL - This project is in active development and should not be used in production environments. APIs and features may change without notice.
Automatically track and analyze all emails and notifications sent through Symfony Mailer and Notifier components.
🎯 What This Bundle Does
This bundle automatically captures and tracks notifications sent through:
- ✅ Symfony Mailer - All emails sent via
$mailer->send() - ✅ Symfony Notifier - All notifications sent via
$notifier->send() - ✅ Manual API - Custom notifications via REST API
No code changes required! Just install, configure, and start tracking.
🚀 Quick Start
- Install:
composer require nkamuo/notification-tracker-bundle - Configure: Add to
bundles.php - Migrate: Run
doctrine:migrations:migrate - Use: Send emails/notifications as normal - they're automatically tracked!
📚 Documentation
👉 START HERE: Complete Documentation
Essential Links
- 📖 Main Guide - Complete setup and usage
- 🌐 API Reference - REST API documentation
- 🔍 Custom Filters - Advanced API filtering
- ⚠️ Experimental Notice - Important warnings
🧪 Experimental Status
This is an experimental project - use at your own risk:
- ✅ Core tracking functionality works
- ⚠️ APIs may change without notice
- 🚧 Active development in progress
- 🔬 Suitable for testing and evaluation only
🎯 Key Features
- 📧 Multi-channel Support: Email, SMS, Slack, Telegram, Push notifications
- 🔄 Native Symfony Integration: Works seamlessly with Symfony Mailer and Notifier events
- 📊 Complete Tracking: Track sent, delivered, opened, clicked, bounced, and failed messages
- 🔗 Webhook Support: Integrate with SendGrid, Twilio, Mailgun, and more
- 🚀 Async Processing: Built-in Symfony Messenger support
- 🔍 API Platform Integration: Rich REST API for browsing and managing notifications
- 📈 Real-time Analytics: Performance metrics and engagement statistics
- ⚙️ Highly Configurable: Environment-based configuration with sensible defaults
💻 Installation
composer require nkamuo/notification-tracker-bundle
Register the Bundle
If not using Symfony Flex, register the bundle in config/bundles.php:
return [ // ... Nkamuo\NotificationTrackerBundle\NotificationTrackerBundle::class => ['all' => true], ];
Run Migrations
php bin/console doctrine:migrations:diff php bin/console doctrine:migrations:migrate
⚙️ Basic Configuration
Create config/packages/notification_tracker.yaml:
notification_tracker: enabled: true tracking: enabled: true track_opens: true track_clicks: true
📊 Usage Examples
Automatic Tracking
The bundle automatically tracks all emails and notifications sent through Symfony's components:
// Emails are automatically tracked $email = (new Email()) ->from('hello@example.com') ->to('you@example.com') ->subject('Time for Symfony Mailer!') ->html('<p>See Twig integration for better HTML integration!</p>'); $mailer->send($email);
API Access
Browse and manage notifications via API Platform:
# List tracked messages GET /api/notification-tracker/messages # Get message details GET /api/notification-tracker/messages/{id} # Retry failed message POST /api/notification-tracker/messages/{id}/retry # View analytics GET /api/notification-tracker/analytics
Console Commands
# Process failed messages php bin/console notification-tracker:process-failed # View analytics php bin/console notification-tracker:analytics # Clean up old messages php bin/console notification-tracker:cleanup --days=90
🔗 Webhook Setup
Configure your webhook endpoints with your providers:
- SendGrid:
https://your-domain.com/webhooks/notification-tracker/sendgrid - Twilio:
https://your-domain.com/webhooks/notification-tracker/twilio - Mailgun:
https://your-domain.com/webhooks/notification-tracker/mailgun
🧪 Testing
composer test
composer cs-fix
composer phpstan
🤝 Support
For issues and feature requests, please use the GitHub issue tracker.
📄 License
MIT
Ready to enhance your notification system with comprehensive tracking and analytics? 🚀
Check out the complete documentation to get started!
nkamuo/notification-tracker-bundle 适用场景与选型建议
nkamuo/notification-tracker-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 41 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 09 月 19 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「mailer」 「symfony」 「email」 「bundle」 「notification」 「notifier」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 nkamuo/notification-tracker-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 nkamuo/notification-tracker-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 nkamuo/notification-tracker-bundle 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
The bundle for easy using json-rpc api on your project
Creates new sare mail transport for laravel applications
Bundle Symfony DaplosBundle
Extensible library for building notifications and sending them via different delivery channels.
Email+ extends Kirby's email capabilities by adding support for multiple email services using the same Kirby email API.
Mandrill Api Integration for Yii2
统计信息
- 总下载量: 41
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 11
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-09-19