2017 © Pedro Peláez
 

library php-ews

Library for communicating with Exchange Web Services.

image

php-ews/php-ews

Library for communicating with Exchange Web Services.

  • Wednesday, July 25, 2018
  • by jamesiarmes
  • Repository
  • 45 Watchers
  • 449 Stars
  • 82,393 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 225 Forks
  • 108 Open issues
  • 9 Versions
  • 19 % Grown

The README.md

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., (*1)

Scrutinizer Total Downloads, (*2)

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., (*3)

Installation

The prefered installation method is via Composer, which will automatically handle autoloading of classes., (*4)

{
    "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:, (*5)

use \jamesiarmes\PhpEws\Client;

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

The Client class takes four parameters for its constructor:, (*6)

  • $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 "user@example.com".
  • $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., (*7)

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., (*8)

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., (*9)

Resources

Support

All questions should use the [issue queue][8]. 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., (*10)

The Versions

25/07 2018

dev-master

9999999-dev http://jamesarmes.com/php-ews/

Library for communicating with Exchange Web Services.

  Sources   Download

MIT

The Requires

 

The Development Requires

by James Armes

04/10 2017

1.0.0

1.0.0.0 http://jamesarmes.com/php-ews/

Library for communicating with Exchange Web Services.

  Sources   Download

MIT

The Requires

 

The Development Requires

by James Armes

11/03 2017

1.0.0-rc.2

1.0.0.0-RC2 http://jamesarmes.com/php-ews/

Library for communicating with Exchange Web Services.

  Sources   Download

MIT

The Requires

 

The Development Requires

by James Armes

03/03 2017

1.0.0-rc.1

1.0.0.0-RC1 http://jamesarmes.com/php-ews/

Library for communicating with Exchange Web Services.

  Sources   Download

MIT

The Requires

 

The Development Requires

by James Armes

12/02 2017

1.0.0-beta.4

1.0.0.0-beta4 http://jamesarmes.com/php-ews/

Library for communicating with Exchange Web Services.

  Sources   Download

MIT

The Requires

 

The Development Requires

by James Armes

22/01 2017

1.0.0-beta.3

1.0.0.0-beta3 http://jamesarmes.com/php-ews/

Library for communicating with Exchange Web Services.

  Sources   Download

MIT

The Requires

 

The Development Requires

by James Armes

13/01 2017

1.0.0-beta.2

1.0.0.0-beta2 http://jamesarmes.com/php-ews/

Library for communicating with Exchange Web Services.

  Sources   Download

MIT

The Requires

 

The Development Requires

by James Armes

30/12 2016

1.0.0-beta.1

1.0.0.0-beta1 http://jamesarmes.com/php-ews/

Library for communicating with Exchange Web Services.

  Sources   Download

MIT

The Requires

 

The Development Requires

by James Armes

03/04 2016

dev-composer

dev-composer

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.

  Sources   Download

MIT

The Requires

  • php >=5.3.9
  • ext-soap *

 

The Development Requires