You need two things to get started: a development environment to run your PHP scripts and a code editor to write the code.
Install a local development environment. PHP is a scripting language. ...
Install a code editor. A code editor is basically an advanced text editor that helps you writing your code. ...
Start coding.