Create a router.php file from a curl installer in the local directory
PHP Shell
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

Easily run Magento from PHP 5.4's webserver

Copy the router.php file into your Magento root directory. When starting PHP's webserver, use the router file as the last parameter:

php -S router.php

To enable developer mode (for example, in Magento 2 below) use the following which sets the EnvVar:

MAGE_MODE=developer php -d variables_order=EGPCS -S router.php

To install from a shell installer (to script in a deployment, for instance):

curl -sS | bash

Special thanks to for their help in getting this set up.