承接 oshco/mail-queue 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

oshco/mail-queue

最新稳定版本:v1.0.1

Composer 安装命令:

composer require oshco/mail-queue

包简介

Simple middleware to queue email messages in WebFiori applications.

README 文档

README

A middleware for queing emails in WebFiori.

The aim of this class library is to provide a middleware which will be executed after the request is processed by the application. This will reduce wait time before the application sends the response.

Classes

Usage

Registering the Middleware

First step in using the middleware is to register it under your WebFiori Application. To register the middleware, modify the code on the class [APP_DIR]\ini\InitMiddleware as follows:

use oshco\middleware\MailQueue;
use webfiori\framework\middleware\MiddlewareManager;

class InitMiddleware {
    public static function init() {
        MiddlewareManager::register(MailQueue::get());
    }
}

Using The Middleware

The messages that will be registered must be of type webfiori\email\Email. Following code snippit shows a basic use case.

$mail1 = new Email($sendAccount);
$mail1->addTo('someoneh@example.com');
MailQueue::enqueue(mail1)

License

The library is licensed under MIT license.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2023-10-16