Help on first steps with php

I’m new with Homey (< 1 week). I would like to run a php script on my Synology NAS that reads measurements from Homey (weather sensors, solar panel, etc.) and store it in a SQL database on the Synology. I was able to do that with my old Homewizard.
I need some basic guidance on how to read data from the Homey.

Use the Search function on this forum:

That doesn’t give me enough first-step-info. I read a lot of info on API, etc.

It would be helpful if someone has a working example (preferable in PHP) to read sensor values from Homey. I can find info on curl and the api, but cannot get it running.

Unfortunately I cannot reply on topics in the old Homey forum, because the old forum is closed.