laravel-enso/monitored-emails
Composer 安装命令:
composer require laravel-enso/monitored-emails
包简介
Email monitor and processor for Laravel Enso
README 文档
README
Description
Monitored Emails connects IMAP or POP inboxes to Laravel Enso and persists unread messages for further application processing.
The package exposes CRUD screens for mailbox configuration, validates remote connectivity from the backoffice, and schedules a recurring fetch cycle that stores unseen messages in the local database.
It is intended for Enso applications that ingest customer or operational inboxes and then continue processing from persisted messages instead of polling mailboxes ad hoc.
Installation
Install the package:
composer require laravel-enso/monitored-emails
Run the package migrations:
php artisan migrate
Features
- Mailbox CRUD, table init, table data, and Excel export endpoints.
- Connectivity test endpoint for validating server, folder, and credentials before saving changes.
- Scheduled
enso:monitored-emails:fetch-unread-emailscommand registered every fifteen minutes. - Queue-backed unread message ingestion through the
FetchUnreadEmailsjob. - Protocol enum for
imap,secureImap,pop3, andsmtp, with default ports. - Encrypted password storage on the monitored mailbox model.
Usage
Configure one or more monitored inboxes from the administration UI and enable them with the is_active flag.
Main route group:
administration.monitoredEmails.*
The package schedules unread-message polling automatically. You can also trigger the fetch manually:
php artisan enso:monitored-emails:fetch-unread-emails
Each configured mailbox resolves an IMAP client through webklex/php-imap, reads unseen messages from the selected folder, stores the raw message metadata in monitored_messages, and marks the remote message as seen.
API
HTTP routes
GET api/administration/monitoredEmails/createPOST api/administration/monitoredEmailsGET api/administration/monitoredEmails/{monitoredEmail}/editPATCH api/administration/monitoredEmails/{monitoredEmail}DELETE api/administration/monitoredEmails/{monitoredEmail}GET api/administration/monitoredEmails/initTableGET api/administration/monitoredEmails/tableDataGET api/administration/monitoredEmails/exportExcelPOST api/administration/monitoredEmails/{monitoredEmail}/testEmail
Artisan commands
enso:monitored-emails:fetch-unread-emails
Queue job
LaravelEnso\\MonitoredEmails\\Jobs\\FetchUnreadEmails
Behavior:
- loads all active monitored inboxes
- connects to each configured mailbox
- fetches unseen messages from the selected folder
- stores persisted message copies locally
- marks remote messages as seen after import
Depends On
Required Enso packages:
Required external packages:
Companion frontend package:
Contributions
are welcome. Pull requests are great, but issues are good too.
Thank you to all the people who already contributed to Enso!
laravel-enso/monitored-emails 适用场景与选型建议
laravel-enso/monitored-emails 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 608 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 08 月 13 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「email-processing」 「email-monitoring」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 laravel-enso/monitored-emails 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 laravel-enso/monitored-emails 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 608
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 10
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-08-13