PHP Classes


Recommend this page to a friend!
  Classes of WsdlToPhp  >  PHP Microsoft EWS Office 365  >  >  Download  
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP Microsoft EWS Office 365
Access Office 365 Exchange Web Services via SOAP
Author: By
Last change: add SensioLabsInsight badge
improve documentation and samples
add sample in order to create a task item
update readme in order to add link to find unread inbox items sample script
add samples for GetItem operation
update paths
review readme
update readme
Date: 4 years ago
Size: 4,692 bytes


Class file image Download

Scrutinizer Code Quality Latest Stable Version Dependency Status StyleCI Total Downloads SensioLabsInsight


This package has been generated from the Office 365 Exchange Web Services WSDL using the PackageGenerator project.

The complete list of operations is available at the Office Dev Center.aspx).


Generating again the package

You can generate again the package's sources using the script:

$ git clone package-ews365
$ cd package-ews365
$ ./

To learn how to customize the generated package, please read the PackageGenerator's README.

How to use the generated package?

Install the project

$ git clone package-ews365
$ cd package-ews365
$ composer update

Learn from the tutorial

Start looking into the auto-generated tutorial.php file. This file contains the starting code to use this package. In addition it contains all the operations provided by the Exchange Web Services and the way to call them.

Determine your Office 365 endpoint action location

Determining the Office 365 endpoint action location can be tricky so below is indicated 2 ways to do it. This location must be defined in the setLocation call into the sample files. The default location has been defined so it might work fine with you too. If not, you should try determining it. If you don't understand, don't hesitate to contact me at

Manually from the endpoint itself

You should be able to get the endpoint action location from the services.wsdl by opening your browser and browsing to You must enter your Office 365 credentials then it should display a page where it indicates something such as svcutil.exe This is in the that you can find at the end the endpoint action location such as <soap:address location="" />.

From your Office 365 account

Following this Tech Blog article, I simply used the endpoint location action indicated in the article as and it worked :).

Start from the samples

Sample scripts are available under the samples folder:

Need support or having a question?

We can help you understand how to use it and how to customize it. Feel free to contact us at

For more information send a message to info at phpclasses dot org.