https://github.com/noname007/yii2-ews
a simple wrapper for php-ew
https://github.com/noname007/yii2-ews
ews php-ews yii2 yii2-extension
Last synced: 8 months ago
JSON representation
a simple wrapper for php-ew
- Host: GitHub
- URL: https://github.com/noname007/yii2-ews
- Owner: noname007
- License: lgpl-3.0
- Created: 2020-02-25T10:00:21.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-07-31T17:35:19.000Z (about 2 years ago)
- Last Synced: 2025-01-31T09:34:13.665Z (8 months ago)
- Topics: ews, php-ews, yii2, yii2-extension
- Language: PHP
- Size: 27.3 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# yii2-ews
a simple wrapper for php-ew### about service application account
ews docs: https://docs.microsoft.com/zh-cn/Exchange/client-developer/exchange-web-services/ews-application-types### install
```shell
php composer.phar require noname007/yii2-ews
```### config
```php
....component => [
...
'ews' => [
'class' => Ews::class,
'host' => 'exchange serve domain',
'password' => 'service application account',
'username' => 'service application account',
]
]...
..
```### usage
```php
$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
);```