PHPackages                             adeboyed/laravel-ews-driver - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. adeboyed/laravel-ews-driver

ActiveLibrary[HTTP &amp; Networking](/categories/http)

adeboyed/laravel-ews-driver
===========================

Adds Exchange Web Services Mail Support to Laravel.

v1.1.2(5y ago)32.4k4[1 issues](https://github.com/adeboyed/laravel-ews-driver/issues)Apache-2.0PHPPHP &gt;=7.1CI failing

Since Jun 15Pushed 5y ago3 watchersCompare

[ Source](https://github.com/adeboyed/laravel-ews-driver)[ Packagist](https://packagist.org/packages/adeboyed/laravel-ews-driver)[ Docs](https://github.com/adeboyed/laravel-ews-driver)[ RSS](/packages/adeboyed-laravel-ews-driver/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (2)Versions (10)Used By (0)

Laravel Exchange Web Services Driver
====================================

[](#laravel-exchange-web-services-driver)

[![Packagist Version](https://camo.githubusercontent.com/9674266271f35f32fa05b1da7fbb169b038ff1b9fcf7b477e9d81a99f6a71d06/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616465626f7965642f6c61726176656c2d6577732d647269766572)](https://camo.githubusercontent.com/9674266271f35f32fa05b1da7fbb169b038ff1b9fcf7b477e9d81a99f6a71d06/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616465626f7965642f6c61726176656c2d6577732d647269766572)[![Packagist PHP Version Support](https://camo.githubusercontent.com/9db3561573663fbae60a7d34764a9e35d45bdb4fe83ecd5cafb0f7ef26c3a015/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f616465626f7965642f6c61726176656c2d6577732d647269766572)](https://camo.githubusercontent.com/9db3561573663fbae60a7d34764a9e35d45bdb4fe83ecd5cafb0f7ef26c3a015/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f616465626f7965642f6c61726176656c2d6577732d647269766572)

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](https://github.com/jamesiarmes/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](https://github.com/jamesiarmes/php-ews/)

Install (Laravel)
=================

[](#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)
===============

[](#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

```
