PHPackages                             intelogie/php-ews - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. intelogie/php-ews

ActiveLibrary

intelogie/php-ews
=================

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.

024PHP

Since Apr 27Pushed 10y ago1 watchersCompare

[ Source](https://github.com/INTELOGIE/php-ews)[ Packagist](https://packagist.org/packages/intelogie/php-ews)[ RSS](/packages/intelogie-php-ews/feed)WikiDiscussions composer Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PhpEws - PHP Exchange Web Services
==================================

[](#phpews---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.

**This is a forked version** of the original GitHub project at [jamesiarmes/php-ews](/jamesiarmes/php-ews) to bring Composer installation, namespaces and PSR-0 autoloading of classes.

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/9095fa08d411c17e0ed68b31677e3b0f5badb8a61a22a3228145d15f52236c75/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6164616d656c736f2f7068702d6577732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/adamelso/php-ews/?branch=master)

Dependencies
------------

[](#dependencies)

- Composer
- PHP 5.4 or greater
- cURL with NTLM support (7.23.0+ recommended)
- Exchange 2007 or 2010\*

\**Note: Not all operations or request elements are supported on Exchange 2007.*

Installation (WIP)
------------------

[](#installation-wip)

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

```
{
    "require": {
        "php-ews/php-ews": "dev-master"
    }
}
```

Usage
-----

[](#usage)

The library can be used to make several different request types. In order to make a request, you need to instantiate a new `�ExchangeWebServices` object:

```
use PhpEws\EwsConnection;

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

The `EwsConnection` 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 determing the correct url, you could try using the [`PhpEws\AutodiscoveryManager`](https://github.com/jamesiarmes/php-ews/wiki/Autodiscovery) class.
- `$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 "".
- `$password`: The user's plain-text password.
- `$version` (optional): The version of the Exchange sever to connect to. Valid values can be found at `EwsConnection::VERSION_*`. Defaults to Exchange 2007.

Once you have your `EwsConnection` 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.

Resources
---------

[](#resources)

- [PHP Exchange Web Services Wiki](https://github.com/jamesiarmes/php-ews/wiki)
- [Exchange 2007 Web Services Reference](http://msdn.microsoft.com/library/bb204119(v=EXCHG.80).aspx)
- [Exchange 2010 Web Services Reference](http://msdn.microsoft.com/library/bb204119(v=exchg.140).aspx)

Support
-------

[](#support)

All questions should use the [issue queue](https://github.com/jamesiarmes/php-ews/issues). This allows the community to contribute to and benefit from questions or issues you may have. Any support requests sent to my email address will be directed here.

Contributions
-------------

[](#contributions)

Contributions are always welcome!

### Contributing Code

[](#contributing-code)

If you would like to contribute code please fork the repository on [github](https://github.com/jamesiarmes/php-ews) and issue a pull request against the master branch. It is recommended that you make any changes to your fork in a separate branch that you would then use for the pull request. If you would like to receive credit for your contribution outside of git, please add your name and email address (optional) to the CONTRIBUTORS.txt file. All contributions should follow the [PSR-1](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md) and [PSR-2](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md) coding standards.

### Contributing Documentation

[](#contributing-documentation)

If you would like to contribute to the documentation, please feel free to update the [wiki](https://github.com/jamesiarmes/php-ews/wiki). I request that you do not make changes to the home page but other pages (including new ones) are fair game. Please leave a descriptive log message for any changes that you make.

### Other Contributions

[](#other-contributions)

Have you found this library helpful? Why not take a minute to endorse my hard work on [coderwall](http://coderwall.com)! Just click the badge below:

[![](https://camo.githubusercontent.com/83668f5ea6064e3b5fe39cb36055a891543428d9469d57b964040f1c89a58af8/687474703a2f2f6170692e636f64657277616c6c2e636f6d2f6a616d65736961726d65732f656e646f727365636f756e742e706e67)](http://coderwall.com/jamesiarmes)

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 74.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/8cd960536c07e255b2e6f7e55c03c6d09274b215ccceaccc38926ffe03e098a7?d=identicon)[bgauthier](/maintainers/bgauthier)

---

Top Contributors

[![jamesiarmes](https://avatars.githubusercontent.com/u/1030345?v=4)](https://github.com/jamesiarmes "jamesiarmes (113 commits)")[![adamelso](https://avatars.githubusercontent.com/u/5972864?v=4)](https://github.com/adamelso "adamelso (23 commits)")[![ellisgl](https://avatars.githubusercontent.com/u/94559?v=4)](https://github.com/ellisgl "ellisgl (6 commits)")[![daareiza](https://avatars.githubusercontent.com/u/8284557?v=4)](https://github.com/daareiza "daareiza (3 commits)")[![cby016](https://avatars.githubusercontent.com/u/1350113?v=4)](https://github.com/cby016 "cby016 (3 commits)")[![TheBabaYaga](https://avatars.githubusercontent.com/u/3961971?v=4)](https://github.com/TheBabaYaga "TheBabaYaga (1 commits)")[![bgauthier](https://avatars.githubusercontent.com/u/1789355?v=4)](https://github.com/bgauthier "bgauthier (1 commits)")[![dwolfhub](https://avatars.githubusercontent.com/u/3383733?v=4)](https://github.com/dwolfhub "dwolfhub (1 commits)")

### Embed Badge

![Health badge](/badges/intelogie-php-ews/health.svg)

```
[![Health](https://phpackages.com/badges/intelogie-php-ews/health.svg)](https://phpackages.com/packages/intelogie-php-ews)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
