fuitad / laravel-exchange-web-services
Exchange Web Services bridge for Laravel 5
Installs: 1 397
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 2
Forks: 5
Open Issues: 0
Requires
- php: >=5.4.0
- fuitad/exchange-web-services-for-php: 2.0.*
- graham-campbell/manager: ^2.0
- illuminate/contracts: 5.1.* || 5.2.*
- illuminate/support: 5.1.* || 5.2.*
Requires (Dev)
- graham-campbell/testbench: ^3.1
- mockery/mockery: ^0.9.4
- phpunit/phpunit: ^4.8 || ^5.0
This package is auto-updated.
Last update: 2022-02-01 12:55:42 UTC
README
Exchange Web Services bridge for Laravel 5
Installation
Require this package with Composer
composer require fuitad/laravel-exchange-web-services
Quick Start
Once Composer has installed or updated your packages you need to register EwsBridge with Laravel itself. Open up config/app.php and find the providers key, towards the end of the file, and add 'EwsBridge\EwsServiceProvider::class', to the end:
'providers' => [ ... EwsBridge\EwsServiceProvider::class ],
Now find the alliases key, again towards the end of the file, and add 'ExchangeWebServices' => 'EwsBridge\Facade\ExchangeWebServices::class', to have easier access to the EwsBridge:
'aliases' => [ ... 'ExchangeWebServices' => EwsBridge\Facade\ExchangeWebServices::class ],
Now that you have the both of these added to config/app.php we will use Artisan to add the new ews config file:
php artisan vendor:publish --provider="EwsBridge\EwsServiceProvider"
Most of the config values are fetch from your .env file so you'll want to add the following variables in your ENV file:
EWS_USERNAME=email@account.com OR domain\username
EWS_PASSWORD=password123
EWS_URL=https://mail.myserver.com/EWS/Services.wsdl
Your URL must link to the wsdl file on your EWS server, otherwise, it won't work!
If you need to log into a delegate account, you'll also need to add the following variable:
EWS_DELEGATE=delegatemailbox@account.com
Usage
$messages = ExchangeWebServices::get_messages(5);