PHP Classes

PHP Microsoft EWS Office 365: Access Office 365 Exchange Web Services via SOAP

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 229 All time: 8,173 This week: 63Up
Version License PHP version Categories
packageews365 1.0.7MIT/X Consortium ...5Email, PHP 5, Web services
Description 

Author

This package can access Office 365 Exchange Web Services via SOAP.

It can send SOAP requests to Microsoft Office 365 EWS to perform several types of operations and access services supported by the API.

It can use the services or perform operations supported by the API since the code was generated from the WSDL definition.

Innovation Award
PHP Programming Innovation award nominee
January 2017
Number 12
EWS is the set of APIs that can be used to manage Microsoft Exchange Office 365 Web Services which is the Exchange version on the cloud.

This class provides a PHP version of the EWS Office 365 API clients that can be used to build Web based applications based on the Exchange cloud version.

Manuel Lemos
Picture of WsdlToPhp
  Performance   Level  
Innovation award
Innovation award
Nominee: 5x

Winner: 1x

 

Details

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

PackageEws365

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).

Summary

Generating again the package

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

$ git clone https://github.com/WsdlToPhp/PackageEws365.git package-ews365
$ cd package-ews365
$ ./generate.sh

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 https://github.com/WsdlToPhp/PackageEws365.git 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 contact@wsdltophp.com.

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 outlook.office365.com/EWS/Exchange.asmx. You must enter your Office 365 credentials then it should display a page where it indicates something such as svcutil.exe https://.outlook.com/EWS/Services.wsdl. This is in the https://.outlook.com/EWS/Services.wsdl that you can find at the end the endpoint action location such as <soap:address location="https://outlook.office365.com/EWS/Exchange.asmx" />.

From your Office 365 account

Following this Tech Blog article, I simply used the endpoint location action indicated in the article as https://pod51036.outlook.com/ews/services.wsdl 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 contact@wsdltophp.com.


  Files folder image Files (1446)  
File Role Description
Files folder imagesamples (1 file, 4 directories)
Files folder imageSoapClient (2 files)
Files folder imagesrc (1 file, 4 directories)
Files folder imagewsdl (6 files)
Accessible without login Plain text file CHANGELOG.md Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file generate.sh Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file substitutionGroup.php Example Example script
Accessible without login Plain text file tutorial.php Example Example script

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:229
This week:0
All time:8,173
This week:63Up
User Comments (1)
nice
8 years ago (muabshir)
80%StarStarStarStarStar