adeboyed/laravel-ews-driver
Composer 安装命令:
composer require adeboyed/laravel-ews-driver
包简介
Adds Exchange Web Services Mail Support to Laravel.
README 文档
README
A Mail Driver with support for Exchange Web Services, using the original Laravel API. This library extends the original Laravel classes, so it uses exactly the same methods. This package requires a access to a EWS host.
This library uses the php-ews library to connect to the exchange web services host. Therefore requires the following dependencies:
- Composer
- PHP 5.4 or greater
- cURL with NTLM support (7.30.0+ recommended)
- Exchange 2007 or later
For more information, visit that repo
Install (Laravel)
Add the package to your composer.json and run composer update.
"require": { "adeboyed/laravel-ews-driver": "~1.1" },
or install with composer
$ composer require adeboyed/laravel-ews-driver
Add the Exchange service provider in config/app.php: (Laravel 5.5+ uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.)
'providers' => [ Adeboyed\LaravelExchangeDriver\ExchangeAddedServiceProvider::class ];
Install (Lumen)
Add the package to your composer.json and run composer update.
"require": { "adeboyed/laravel-ews-driver": "~1.1" },
or install with composer
$ composer require adeboyed/laravel-ews-driver
Add the exchange service provider in bootstrap/app.php
$app->configure('mail'); $app->configure('services'); $app->register(Adeboyed\LaravelExchangeDriver\ExchangeServiceProvider::class); unset($app->availableBindings['mailer']);
Create mail config files. config/mail.php
<?php return [ 'driver' => env('MAIL_DRIVER', 'exchange'), ];
Configure
.env
MAIL_DRIVER=exchange
MAIL_HOST=webmail.example.com
MAIL_USERNAME=examplemail
MAIL_PASSWORD=examplepassword
MAIL_MESSAGE_DISPOSITION_TYPE=SaveOnly|SendAndSaveCopy|SendOnly
config/mail.php (In using lumen, this requires creating config directory and file, see more here)
'mailers' => [ 'exchange' => [ 'transport' => 'exchange', 'host' => env('MAIL_HOST'), 'username' => env('MAIL_USERNAME'), 'password' => env('MAIL_PASSWORD'), 'messageDispositionType' => env('MAIL_MESSAGE_DISPOSITION_TYPE') // Optional, default: SendAndSaveCopy ], ],
For more information on the Message Disposition Type, view more here
adeboyed/laravel-ews-driver 适用场景与选型建议
adeboyed/laravel-ews-driver 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.37k 次下载、GitHub Stars 达 3, 最近一次更新时间为 2020 年 06 月 15 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「exchange」 「ews」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 adeboyed/laravel-ews-driver 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 adeboyed/laravel-ews-driver 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 adeboyed/laravel-ews-driver 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Extension conversion of 'EWS' to yii2 extension
A package for validating Google Cloud's JWT provided by webhooks
Fixer.io data provider for Peso
A simple wrapper around jamesiarmes/php-ews library
Exchange web services extension for yii2
Adds Exchange Web Services Mail Support to Laravel.
统计信息
- 总下载量: 2.37k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 10
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2020-06-15