run php server
snippet in php

simple localhost php

user5195

1) cd ~/public_html
2) php -S localhost:8000

run php server

user1687

cd path/to/your/app
php -S localhost:8000

serve php file

user1573

Open Terminal
php -S localhost:8000

run a server php terminal

user3688

$ cd ~/public_html
$ php -S localhost:8000