@Amshumanth Sirga You can get some ideas from https://azure.microsoft.com/en-us/develop/php/ or can also reach out at azurephpsdk@microsoft.com to see if they have any custom samples.
Coming to MSAL or ADAL :
Many developers have built and deployed applications using the Azure Active Directory Authentication Library (ADAL). We now recommend using the Microsoft Authentication Library (MSAL) for authentication and authorization of Azure AD entities.
By using MSAL instead of ADAL:
- You can authenticate a broader set of identities:
- Azure AD identities
- Microsoft accounts
- Social and local accounts by using Azure AD B2C
- Your users will get the best single-sign-on experience.
- Your application can enable incremental consent.
- Supporting Conditional Access is easier.
- You benefit from innovation. Because all Microsoft development efforts are now focused on MSAL, no new features will be implemented in ADAL.
You can read more about it here
-----------------------------------------------------------------------------------------------------------------
If the suggested response helped you resolve your issue, please do not forget to accept the response as Answer and "Up-Vote" for the answer that helped you for benefit of the community.