Jak uruchomić polecenie curl poprzez skrypt php

You can try below link direct convert whole command into php script
https://incarnate.github.io/curl-to-php/
Ankur