There is currently no such library. You have oauth-php and oauth2-php library, but they are not "simple", the good part is that they manage their token themselves. They donβt like minor tokens (like Yahoo), which can be a big problem.
In addition, some Microsoft API functions are no longer available in version 5.0, that is, you must use your old API, which implements its own Oauth protocol (all oauth_ * parameters are called wrap _ *).
Edit: You can check out the HybridAuth project, which implements part of the input (not all APIs), but should give you a good starter.
source share