PHPackages                             php-ews/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. [HTTP &amp; Networking](/categories/http)
4. /
5. php-ews/php-ews

ActiveLibrary[HTTP &amp; Networking](/categories/http)

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

Library for communicating with Exchange Web Services.

1.0.0(8y ago)5792.6M↓24.2%311[171 issues](https://github.com/jamesiarmes/php-ews/issues)[9 PRs](https://github.com/jamesiarmes/php-ews/pulls)13MITPHPPHP &gt;=5.3.9

Since Apr 3Pushed 2y ago41 watchersCompare

[ Source](https://github.com/jamesiarmes/php-ews)[ Packagist](https://packagist.org/packages/php-ews/php-ews)[ Docs](http://jamesarmes.com/php-ews/)[ RSS](/packages/php-ews-php-ews/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (9)Dependencies (2)Versions (9)Used By (13)

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.

[![Scrutinizer](https://camo.githubusercontent.com/816c33472e9c7475a40ddef9dcbaba9fe424e1a8a07465dff952d13ef91e3816/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6a616d65736961726d65732f7068702d6577732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/jamesiarmes/php-ews)[![Total Downloads](https://camo.githubusercontent.com/c03dfd228c91e031ca17fe3539a0346a99aaa62dc62466abcdc4e825f70336d2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7068702d6577732f7068702d6577732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/php-ews/php-ews)

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

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

[](#installation)

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

```
{
    "require": {
        "php-ews/php-ews": "~1.0"
    }
}
```

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 `\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](https://github.com/jamesiarmes/php-ews/tree/master/examples/autodiscover).
- `$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 `\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
--------

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

[](#resources)

- [php-ews Website](http://www.jamesarmes.com/php-ews/)
- [Exchange 2007 Web Services Reference](http://msdn.microsoft.com/library/bb204119(v=EXCHG.80).aspx)
- [Exchange 2010 Web Services Reference](http://www.jamesarmes.com/php-ews/)
- [Exchange 2013 Web Services Reference](http://msdn.microsoft.com/library/bb204119(v=exchg.150).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 received via email will be directed here.

###  Health Score

48

—

FairBetter than 94% of packages

Maintenance14

Infrequent updates — may be unmaintained

Popularity66

Solid adoption and visibility

Community41

Growing community involvement

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 94.9% 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.

###  Release Activity

Cadence

Every ~46 days

Recently: every ~63 days

Total

7

Last Release

3171d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/aaf52d8676f3f2110ff10f2fd76bf503c85178b3440e601230f18df7b8cdb6ce?d=identicon)[jamesiarmes](/maintainers/jamesiarmes)

---

Top Contributors

[![jamesiarmes](https://avatars.githubusercontent.com/u/1030345?v=4)](https://github.com/jamesiarmes "jamesiarmes (297 commits)")[![cby016](https://avatars.githubusercontent.com/u/1350113?v=4)](https://github.com/cby016 "cby016 (3 commits)")[![daareiza](https://avatars.githubusercontent.com/u/8284557?v=4)](https://github.com/daareiza "daareiza (3 commits)")[![koab](https://avatars.githubusercontent.com/u/4482306?v=4)](https://github.com/koab "koab (1 commits)")[![LuthorDevelopment](https://avatars.githubusercontent.com/u/10698011?v=4)](https://github.com/LuthorDevelopment "LuthorDevelopment (1 commits)")[![nvanheuverzwijn](https://avatars.githubusercontent.com/u/943226?v=4)](https://github.com/nvanheuverzwijn "nvanheuverzwijn (1 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")[![senasi](https://avatars.githubusercontent.com/u/12956618?v=4)](https://github.com/senasi "senasi (1 commits)")[![tap52384](https://avatars.githubusercontent.com/u/647983?v=4)](https://github.com/tap52384 "tap52384 (1 commits)")[![B16-1DEA](https://avatars.githubusercontent.com/u/136657565?v=4)](https://github.com/B16-1DEA "B16-1DEA (1 commits)")[![thijzert](https://avatars.githubusercontent.com/u/845572?v=4)](https://github.com/thijzert "thijzert (1 commits)")[![barryvdh](https://avatars.githubusercontent.com/u/973269?v=4)](https://github.com/barryvdh "barryvdh (1 commits)")[![funnyleone](https://avatars.githubusercontent.com/u/16625544?v=4)](https://github.com/funnyleone "funnyleone (1 commits)")

### Embed Badge

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

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

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25025.5M79](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

13137.2M6.4k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k20.0k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87930.4k112](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.3M82](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69122.6k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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