File upload to onedrive business account using rest api

I want to add a file uploader to my website, the issue is that my server is quite small so I want to take advantage of my 1TB onedrive for business account. Apparently it’s possible.
My idea is to temporarily host whatever file some user wants to upload to my website, immediately run a PHP request, upload it to some folder in my onedrive account, delete the file in my server and simply leave some data in my database to track those files later.
The thing is that while there is some documentation regarding request and such there are no PHP examples to start from, could you give me a hand?