Spin up php server locally in no time

Another post on tooling with this time a quick and easy way to locally spin up a php server, for - say - php templating and testing.

php -S localhost:2222

As mentioned here, the CLI SAPI provides a built-in web server (as of PHP 5.4.0).

It is not intended to be a full-featured web server. But designed to aid application development.

Using the above command line is pretty much all is needed. Proof here with a tiny templated php website.

So long.