定制 highsolutions/laravel-mailer-daemon-catcher 二次开发

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

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

highsolutions/laravel-mailer-daemon-catcher

Composer 安装命令:

composer require highsolutions/laravel-mailer-daemon-catcher

包简介

A Laravel package for signalizing that sent e-mails couldn't be delivered

README 文档

README

License: MIT

Singalizing that sent e-mail cannot be delivered to the recipient.

Laravel-Mailer Daemon Catcher by HighSolutions

Installation

This package can be installed through Composer:

composer require highsolutions/laravel-mailer-daemon-catcher

Or by adding the following line to the require section of your Laravel webapp's composer.json file:

    "require": {
        "highsolutions/laravel-mailer-daemon-catcher": "^2.0"
    }

And run composer update to install the package.

Usage

Check IMAP inbox

To check is any unseen Mailer Daemon message in the inbox, execute this command:

    php artisan mailer-daemon:catch

Package gets configuration from config/mail.php.

We recommend add this command to app/Console/Kernel.php for scheduling this task:

	$schedule->command('mailer-daemon:catch')->hourly();

Handle Mailer Daemon messages

When command finds new messages, it will fire a HighSolutions\LaravelMailderDaemonCatcher\Events\MailerDaemonMessageReceived event.

To capture this event create a listener for this event in App/Providers/EventServiceProvider.php:

	protected $listen = [
		'HighSolutions\LaravelMailderDaemonCatcher\Events\MailerDaemonMessageReceived' => [
			'App\Listeners\MailerDaemonMessageListener',
		],
	];

In that example create a listener in app/Listeners/MailerDaemonMessageListener.php e.g.:

<?php

namespace App\Listeners;

use HighSolutions\LaravelMailderDaemonCatcher\Events\MailerDaemonMessageReceived;

class MailerDaemonMessageListener
{

    public function __construct()
    {
        //
    }

    /**
     * Handle the event.
     *
     * @param  \HighSolutions\LaravelMailderDaemonCatcher\Events\MailerDaemonMessageReceived  $event
     * @return void
     */
    public function handle(MailerDaemonMessageReceived $event)
    {
        // Access the message using $event->message...
    }
}

Testing

Run the tests with:

vendor/bin/phpunit

Changelog

2.3.0

  • Support Laravel 13.x

2.2.0

  • Support Laravel 12.x

2.1.0

  • Support multiple folders, not only INBOX
  • Fix bug with reading date from emails

2.0.0

  • Support Laravel 9.x, 10.x, and 11.x and Webklex/IMAP ^5.3

1.6.0

  • Last version supporting Webklex/IMAP ^1.6

1.4.0

  • Support Laravel 7.x and 8.x

1.3.0

  • Change method to withdraw the recipient and subject method
  • FIX - Error concerning connection failure catched all exceptions

1.2.0

  • Add custom config for more detailed configuration

1.1.0

  • Support Laravel 6.0

1.0.0

  • Basic version

Credits

This package is developed by HighSolutions, software house from Poland in love in Laravel.

highsolutions/laravel-mailer-daemon-catcher 适用场景与选型建议

highsolutions/laravel-mailer-daemon-catcher 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.92k 次下载、GitHub Stars 达 2, 最近一次更新时间为 2019 年 05 月 23 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「mailer」 「email」 「laravel」 「daemon」 「inbox」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 highsolutions/laravel-mailer-daemon-catcher 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 highsolutions/laravel-mailer-daemon-catcher 我们能提供哪些服务?
定制开发 / 二次开发

基于 highsolutions/laravel-mailer-daemon-catcher 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-05-23