PHPackages                             segpacto/yii2-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. segpacto/yii2-ews

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

segpacto/yii2-ews
=================

Extension conversion of 'EWS' to yii2 extension

1.1.1(8y ago)213.0k2[1 issues](https://github.com/segpacto/yii2-exchange/issues)PHP

Since Apr 28Pushed 4y ago3 watchersCompare

[ Source](https://github.com/segpacto/yii2-exchange)[ Packagist](https://packagist.org/packages/segpacto/yii2-ews)[ RSS](/packages/segpacto-yii2-ews/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (1)Versions (6)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.

Dependencies
============

[](#dependencies)

- PHP 5.2+
- 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
------------

[](#installation)

Clone the project from git into the desired location.

```
git clone https://github.com/segpacto/yii2-exchange.git

```

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 `Ews` object:

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

Could be installed using composer :

```
composer require "segpacto/yii2-ews:dev-master"

```

The `ExchangeWebServices` 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 [`EWSAutodiscover`](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 `ExchangeWebServices::VERSION_*`. Defaults to Exchange 2007.

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

Available Functions
-------------------

[](#available-functions)

For synchronization connecting to an stream channel

- synchronize(state\_key) Get all the Emails of the current account
- getEmails() Get Contact List of the current account, estructure \[contact\_id, contact\_email\]
- getContactList() Get Calendar Events, in case not passed will take -15, +15 from now. Result Array defined on the function createEventArrayFromResponse()
- getCalendarEvents(start\_date, end\_date)

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

31

—

LowBetter than 66% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 93.5% 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 ~148 days

Total

3

Last Release

3229d ago

### Community

Maintainers

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

---

Top Contributors

[![segpacto](https://avatars.githubusercontent.com/u/7210110?v=4)](https://github.com/segpacto "segpacto (29 commits)")[![japel](https://avatars.githubusercontent.com/u/2742448?v=4)](https://github.com/japel "japel (2 commits)")

---

Tags

yii2extensioncalendarexchangemailboxews

### Embed Badge

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

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

###  Alternatives

[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1454.6k](/packages/dmstr-yii2-cookie-consent)[kriss/yii2-calendar-schedule

Yii2 Calendar Schedule

108.7k](/packages/kriss-yii2-calendar-schedule)[imanilchaudhari/yii2-currency-converter

This extension will help to find out current currency conversion rate.

1911.7k](/packages/imanilchaudhari-yii2-currency-converter)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1358.5k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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