PHPackages                             laravel-enso/monitored-emails - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. laravel-enso/monitored-emails

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

laravel-enso/monitored-emails
=============================

Email monitor and processor for Laravel Enso

1.2.2(2mo ago)0629↓47.1%MITPHPPHP &gt;=8.2

Since Aug 12Pushed 2mo agoCompare

[ Source](https://github.com/laravel-enso/monitored-emails)[ Packagist](https://packagist.org/packages/laravel-enso/monitored-emails)[ Docs](https://laravel-enso.com)[ RSS](/packages/laravel-enso-monitored-emails/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (4)Versions (12)Used By (0)

Monitored Emails
================

[](#monitored-emails)

[![License](https://camo.githubusercontent.com/ac76ca5914b74b6c90cbc84d4cea6914be94eaba1791a6ce107fa6f443899cc1/68747470733a2f2f706f7365722e707567782e6f72672f6c61726176656c2d656e736f2f6d6f6e69746f7265642d656d61696c732f6c6963656e7365)](LICENSE)[![Stable](https://camo.githubusercontent.com/131bbc0ac48356335658eb322667dd12f564208c48aff79878ce0f1d2ae584fd/68747470733a2f2f706f7365722e707567782e6f72672f6c61726176656c2d656e736f2f6d6f6e69746f7265642d656d61696c732f76657273696f6e)](https://packagist.org/packages/laravel-enso/monitored-emails)[![Downloads](https://camo.githubusercontent.com/7c6f0d372ab7e2a9be122ba065f12372a97f95dcebaf0a14a416c83d67ce6ed4/68747470733a2f2f706f7365722e707567782e6f72672f6c61726176656c2d656e736f2f6d6f6e69746f7265642d656d61696c732f646f776e6c6f616473)](https://packagist.org/packages/laravel-enso/monitored-emails)[![PHP](https://camo.githubusercontent.com/da7cf113b588d26fe679dfefe4a15009272ed358ad4e786ad3c78b45faa61d69/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e322532422d3737376262342e737667)](composer.json)[![Issues](https://camo.githubusercontent.com/94ec3a4ca40b0929cb2e2be386915ba2f2d0f87ad92f45a9f2c1f8e3cedd725a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6c61726176656c2d656e736f2f6d6f6e69746f7265642d656d61696c732e737667)](https://github.com/laravel-enso/monitored-emails/issues)[![Merge Requests](https://camo.githubusercontent.com/c179f2a5e9e147dc34c483e0ff7c8ea2556edcdbcbe054f2fe567e19dc29a04e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732d70722f6c61726176656c2d656e736f2f6d6f6e69746f7265642d656d61696c732e737667)](https://github.com/laravel-enso/monitored-emails/pulls)

Description
-----------

[](#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
------------

[](#installation)

Install the package:

```
composer require laravel-enso/monitored-emails
```

Run the package migrations:

```
php artisan migrate
```

Features
--------

[](#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
-----

[](#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
---

[](#api)

### HTTP routes

[](#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

[](#artisan-commands)

- `enso:monitored-emails:fetch-unread-emails`

### Queue job

[](#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
----------

[](#depends-on)

Required Enso packages:

- [`laravel-enso/core`](https://docs.laravel-enso.com/backend/core.html) [↗](https://github.com/laravel-enso/core)

Required external packages:

- [`webklex/php-imap`](https://github.com/Webklex/php-imap) [↗](https://github.com/Webklex/php-imap)

Companion frontend package:

- [`@enso-ui/monitored-emails`](https://docs.laravel-enso.com/frontend/monitored-emails.html) [↗](https://github.com/enso-ui/monitored-emails)

Contributions
-------------

[](#contributions)

are welcome. Pull requests are great, but issues are good too.

Thank you to all the people who already contributed to Enso!

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance86

Actively maintained with recent releases

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~42 days

Recently: every ~62 days

Total

7

Last Release

75d ago

PHP version history (2 changes)1.0.0PHP &gt;=8.0

1.0.1PHP &gt;=8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16073274?v=4)[Adrian Ocneanu](/maintainers/aocneanu)[@aocneanu](https://github.com/aocneanu)

---

Top Contributors

[![vmcvlad](https://avatars.githubusercontent.com/u/37445394?v=4)](https://github.com/vmcvlad "vmcvlad (5 commits)")[![aocneanu](https://avatars.githubusercontent.com/u/16073274?v=4)](https://github.com/aocneanu "aocneanu (4 commits)")[![GITmanuela](https://avatars.githubusercontent.com/u/44998004?v=4)](https://github.com/GITmanuela "GITmanuela (1 commits)")

---

Tags

email-processingemail-monitoring

### Embed Badge

![Health badge](/badges/laravel-enso-monitored-emails/health.svg)

```
[![Health](https://phpackages.com/badges/laravel-enso-monitored-emails/health.svg)](https://phpackages.com/packages/laravel-enso-monitored-emails)
```

###  Alternatives

[laravel-enso/data-import

Excel Importer dependency for Laravel Enso

2044.0k6](/packages/laravel-enso-data-import)[laravel-enso/tutorials

Tutorial management backend for Laravel Enso

1140.7k](/packages/laravel-enso-tutorials)[laravel-enso/menus

Menu management for Laravel Enso

1644.0k25](/packages/laravel-enso-menus)[laravel-enso/localisation

Language and translation management for Laravel Enso

1362.8k11](/packages/laravel-enso-localisation)[laravel-enso/comments

Comments Manager for Laravel Enso

1140.8k1](/packages/laravel-enso-comments)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
