承接 ognjen/laravel-async-mail 相关项目开发

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

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

ognjen/laravel-async-mail

最新稳定版本:v3.0.0

Composer 安装命令:

composer require ognjen/laravel-async-mail

包简介

Send async mails from Laravel

README 文档

README

Sends async mails from Laravel.

As Laravel documentation says:

Since sending email messages can drastically lengthen the response time of your application, many developers choose to queue email messages for background sending. Laravel makes that easy using its built-in unified queue API.

This aproach is different, it leverages "Symfony\Component\Process\Process" class to create separate PHP process and sends an "Illuminate\Mail\Mailable" using artisan command.

Install

Require package with Composer:

composer require ognjen/laravel-async-mail:v3.0.0

Usage example

<?php

namespace App\Observers;

use App\Order;
use App\Mail\OrderCreated;
use Ognjen\Laravel\AsyncMail;

class OrderObserver {
    public function created(Order $order)
    {
        AsyncMail::send(new OrderCreated($order));
    }
}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-02-11