php exchange,PHP Exchange Web Services

PHP Exchange Web Services

The PHP Exchange Web Services library (php-ews) is intended to make

communication with Microsoft Exchange servers using Exchange Web Services

easier. It handles the NTLM authentication required to use the SOAP

services and provides an object-oriented interface to the complex types

required to form a request.

68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6a616d65736961726d65732f7068702d6577732e7376673f7374796c653d666c61742d737175617265

68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7068702d6577732f7068702d6577732e7376673f7374796c653d666c61742d737175617265

Dependencies

Composer

PHP 5.4 or greater

cURL with NTLM support (7.30.0+ recommended)

Exchange 2007 or later

Note: Not all operations or request elements are supported on all versions of

Exchange.

Installation

The prefered installation method is via Composer, which will automatically

handle autoloading of classes.

{

"require": {

"php-ews/php-ews": "~1.0"

}

}

Usage

The library can be used to make several different request types. In order to

make a request, you need to instantiate a new \jamesiarmes\PhpEws\Client

object:

use \jamesiarmes\PhpEws\Client;

$ews = new Client($server, $username, $password, $version);

The Client class takes four parameters for its constructor:

$server: The url to the exchange server you wish to connect to, without

the protocol. Example: mail.example.com. If you have trouble determining the

correct url, you could try using autodiscovery.

$username: The user to connect to the server with. This is usually the

local portion of the users email address. Example: "user" if the email address

is "[email protected]".

$password: The user's plain-text password.

$version (optional): The version of the Exchange sever to connect to. Valid

values can be found at \jamesiarmes\PhpEws\Client::VERSION_*. Defaults to

Exchange 2007.

Once you have your \jamesiarmes\PhpEws\Client object, you need to build your

request object. The type of object depends on the operation you are calling. If

you are using an IDE with code completion it should be able to help you

determine the correct classes to use using the provided docblocks.

The request objects are build similar to the XML body of the request. See the

resources section below for more information on building the requests.

Examples

There are a number of examples included in the examples directory. These

examples are meant to be run from the command line. In each, you will need to

set the connection information variables to match those of your Exchange server.

For some of them, you will also need to set ids or additional data that will be

used in the request.

Resources

Support

All questions should use the issue queue. This allows the community to

contribute to and benefit from questions or issues you may have. Any support

requests received via email will be directed here.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值