terminal start php server code example
Example 1: run a server php terminal
$ cd ~/public_html
$ php -S localhost:8000
Example 2: start server cmd php
php -S localhost:8000
$ cd ~/public_html
$ php -S localhost:8000
php -S localhost:8000