定制 adeboyed/laravel-ews-driver 二次开发

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

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

adeboyed/laravel-ews-driver

Composer 安装命令:

composer require adeboyed/laravel-ews-driver

包简介

Adds Exchange Web Services Mail Support to Laravel.

README 文档

README

Packagist Version Packagist PHP Version Support

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 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 3
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: Apache-2.0
  • 更新时间: 2020-06-15