PHPackages                             bonoweb/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. bonoweb/laravel-ews-driver

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

bonoweb/laravel-ews-driver
==========================

Adds Exchange Web Services Mail Support to Laravel.

v2.0(5y ago)033Apache-2.0PHPPHP &gt;=7.1

Since Jun 15Pushed 5y agoCompare

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

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

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

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

Forked From ()

[![Packagist Version](https://camo.githubusercontent.com/488e2436f713cb68c69beee7daf9705cc17df3e9b6b7b3e5828454ccde890496/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f626f6e6f7765622f6c61726176656c2d6577732d647269766572)](https://camo.githubusercontent.com/488e2436f713cb68c69beee7daf9705cc17df3e9b6b7b3e5828454ccde890496/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f626f6e6f7765622f6c61726176656c2d6577732d647269766572)[![Packagist PHP Version Support](https://camo.githubusercontent.com/d382208971f0fca0723de121524d3d929db2059de53eea45d93200771a7a28c0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f626f6e6f7765622f6c61726176656c2d6577732d647269766572)](https://camo.githubusercontent.com/d382208971f0fca0723de121524d3d929db2059de53eea45d93200771a7a28c0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f626f6e6f7765622f6c61726176656c2d6577732d647269766572)

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": {
    "bonoweb/laravel-ews-driver": "~2"
},
```

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' => [
    Bonoweb\LaravelExchangeDriver\ExchangeAddedServiceProvider::class
];
```

Install (Lumen)
===============

[](#install-lumen)

Add the package to your composer.json and run composer update.

```
"require": {
    "bonoweb/laravel-ews-driver": "~2"
},
```

or install with composer

```
$ composer require bonoweb/laravel-ews-driver
```

Add the exchange service provider in bootstrap/app.php

```
$app->configure('mail');
$app->configure('services');
$app->register(Bonoweb\LaravelExchangeDriver\ExchangeServiceProvider::class);

unset($app->availableBindings['mailer']);
```

Create mail config files. config/mail.php

```
