noname007 / yii2-ews
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: 2024-09-30 01:52:06 UTC
README
php-ew 的简单封装
关于服务应用程序帐户
安装
php composer.phar require noname007/yii2-ews
配置
.... component => [ ... 'ews' => [ 'class' => Ews::class, 'host' => 'exchange serve domain', 'password' => 'service application account', 'username' => 'service application account', ] ] ... ..
使用
$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 );