First of all in order to use php you need a package like xampp/wamp on your computer in order to create a localhost server. I will personally choose xampp because i worked a lot more with it and i like it more but it’s just a personal choice so feel free to choose your own piece of software if you feel so.