PHPackages                             mishanki/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. mishanki/php-ews

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

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

Library for communicating with Exchange Web Services.

v1.0.4(5mo ago)1204MITPHPPHP &gt;=8.5.0

Since Nov 21Pushed 5mo agoCompare

[ Source](https://github.com/Mishanki/php-ews)[ Packagist](https://packagist.org/packages/mishanki/php-ews)[ RSS](/packages/mishanki-php-ews/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (5)Versions (5)Used By (0)

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 \mishanki\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

40

—

FairBetter than 88% of packages

Maintenance69

Regular maintenance activity

Popularity13

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.3% 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 ~0 days

Total

4

Last Release

178d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5513299b5470b3e7c5f0582ce7a7f941528a3ad48321429e375f1645d28a389e?d=identicon)[Mishanki](/maintainers/Mishanki)

---

Top Contributors

[![jamesiarmes](https://avatars.githubusercontent.com/u/1030345?v=4)](https://github.com/jamesiarmes "jamesiarmes (297 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)")[![Mishanki](https://avatars.githubusercontent.com/u/11581729?v=4)](https://github.com/Mishanki "Mishanki (2 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)")[![koab](https://avatars.githubusercontent.com/u/4482306?v=4)](https://github.com/koab "koab (1 commits)")

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78026.4M414](/packages/react-http)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48347.0M384](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

84310.1M71](/packages/smi2-phpclickhouse)

PHPackages © 2026

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