定制 laravel-enso/monitored-emails 二次开发

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

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

laravel-enso/monitored-emails

最新稳定版本:1.2.2

Composer 安装命令:

composer require laravel-enso/monitored-emails

包简介

Email monitor and processor for Laravel Enso

README 文档

README

License Stable Downloads PHP Issues Merge Requests

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-emails command registered every fifteen minutes.
  • Queue-backed unread message ingestion through the FetchUnreadEmails job.
  • Protocol enum for imap, secureImap, pop3, and smtp, 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/create
  • POST api/administration/monitoredEmails
  • GET api/administration/monitoredEmails/{monitoredEmail}/edit
  • PATCH api/administration/monitoredEmails/{monitoredEmail}
  • DELETE api/administration/monitoredEmails/{monitoredEmail}
  • GET api/administration/monitoredEmails/initTable
  • GET api/administration/monitoredEmails/tableData
  • GET api/administration/monitoredEmails/exportExcel
  • POST 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!

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-08-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固