Hello Dear Jan,
Good Day!
Kindly confirm do you want the code in PHP 5.6? or you are also comfortable with .NET, C# ?
I am very much comfortable to create library for outlook365 API abstraction
Provide the Code in git Bitbucket in your account
Kindly inbox for further discussion
Regards,
SH