use your UTS student email to register a free student account
install PHP in terminal:
brew install php
open phpStorm, register it
create new Project, name it “HelloWorld” or anything.
Press Command + , to open preference tab, go to language & Frameworks > PHP Configure PHP
specify language level
click ‘…’ to configer CLI Interpreter:
click +, then (the PHP executable must be a folder that has php excutable files, and also a php.ini, this php.ini file can be downloaded from the internet)
Configure the server: click “edit configurations” to open server configurations
How to set up a PHP server on MAX OS
specify language level click ‘…’ to configer CLI Interpreter: click +, then (the PHP executable must be a folder that has php excutable files, and also a php.ini, this php.ini file can be downloaded from the internet)
Create a sample index.php file under the project
Click to run
Go to browser, type localhost:8087