title: Connect to Azure Active Directory from PHP web application
body: <p>Seeking for guidance on the subject as I'm really stuck on this, I have a internal URL for an App made on PHP and I want to connect to Azure Active Directory.</p>
  
  <p>So far I've reviewed an <a href="https://azure.microsoft.com/en-us/documentation/articles/active-directory-php-web-single-sign-on/" rel="noreferrer">example from Microsoft</a> using SimpleSAML but it's really outdated and I'm having troubles adapting it for the newer SimpleSAMl code.</p>
  
  <p>Is there a better way to integrate a web application with Azure AD? I read somewhere that I may use Get started with <a href="https://azure.microsoft.com/en-us/documentation/articles/mobile-services-html-get-started/" rel="noreferrer">Mobile Services</a> but I would like to hear from previous experiences on what is the best/current method for using Azure AD for login on PHP?.</p>
  
  <p>-- EDIT --</p>
  
  <p>By integrate I mean to allow people authenticate and retrieve the email address or EmployeeID from the Azure AD to provide SSO support.</p>