title: Using PHP to connect to Microsoft Office 365's Exchange Online services
body: <p>The company that I work for has migrated their local exchange to a hosted Office 365 solution. We are in the process of building out several externally(to our local network) hosted websites and would like to use PHP authentication to build upon our existing, hosted user base.</p>
  
  <p>Can anyone explain or point to some documentation of a way to use PHP to connect to a remotely hosted AD (in this case Office 365) and authenticate users to it and also how to get access to the calendar events of the logged in user</p>
  
  <p>Thank you for your time and effort.</p>