
This article explains a relatively new feature in php; The Built-in web server. Other languages like python and ruby already had their own simple HTTP servers where you can convert you local folders/directories into a simple HTTP server (for python: python -m SimpleHTTPServer) which serves scripts and HTML files and basically does almost everything apache does. Almost!
To use this functionality in PHP, you need to have a version 5.4 or above. Using terminal, navigate to the root of the folder where the index.php or index.html and run the following command.