Lumen 5.5 Mailer

Lumen 沒有內建 Mailer 的功能

Note: By default, the illuminate/mail package is not included with Lumen, so you will need to add the illuminate/mail dependency in your composer.json file.

似乎沒什麼選擇
只有從 Laravel 移植過來的 illuminate/mail

如果直接使用 composer require illuminate/mail 會出錯
因為有太多版本了
建議還是從 composer.json 下手
將 "illuminate/mail": "^5.5" 加入

不過這時候執行 composer update 還是會出錯

root@kitchen maan_cs]# composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 7 installs, 0 updates, 0 removals
  - Installing symfony/css-selector (v4.0.8): Loading from cache
  - Installing tijsverkoyen/css-to-inline-styles (2.2.1): Loading from cache
  - Installing doctrine/lexer (v1.0.1): Loading from cache
  - Installing egulias/email-validator (2.1.4): Loading from cache
  - Installing swiftmailer/swiftmailer (v6.0.2): Loading from cache
  - Installing erusev/parsedown (1.7.1): Loading from cache
  - Installing illuminate/mail (v5.5.40): Loading from cache
egulias/email-validator suggests installing ext-intl (PHP Internationalization Libraries are required to use the SpoofChecking validation)
illuminate/mail suggests installing aws/aws-sdk-php (Required to use the SES mail driver (~3.0).)
illuminate/mail suggests installing guzzlehttp/guzzle (Required to use the Mailgun and Mandrill mail drivers (~6.0).)
Writing lock file
Generating autoload files

還需要把 aws & guzzlehttp 的套件加入
"aws/aws-sdk-php": "~3.0",
"guzzlehttp/guzzle": "~6.0"

這時候執行 composer update 就沒問題了





Comments

Popular posts from this blog

CentOS7 如何新增/移除 Rich Rule for firewalld

mac 安裝 mtr

Howto use Postman test Cors