noname007 / yii2-ews
a simple wrapper for php-ews
v0.4.0
2020-05-08 08:34 UTC
Requires
- php-ews/php-ews: ^1.0
- yiisoft/yii2: ^2.0
This package is auto-updated.
Last update: 2026-03-01 00:13:52 UTC
README
a simple wrapper for php-ew
about service application account
install
php composer.phar require noname007/yii2-ews
config
.... component => [ ... 'ews' => [ 'class' => Ews::class, 'host' => 'exchange serve domain', 'password' => 'service application account', 'username' => 'service application account', ] ] ... ..
usage
$ews = Yii::$app->ews; $ews->impersonateByPrimarySmtpAddress('impersonated people email'); $guests =[ new Guests( array('name' => 'John', 'email' => 'noname007@githubc.com',) ), ]; $ews->createAppointment(new DateTime("@".(time() + 15 * 60)), new DateTime('@'.(time() + 30 * 60)), 'subject text', $guests );