Local test server for PHP similar to Django's runserver
-
26-09-2019 - |
Question
As a Python developer using mostly Django, I've grown accustomed to have a built-in test server for my projects, which spares me from setting up Apache for every single project I'm working on my local development machine. Is there something similar for PHP which let's me say "serve this directory as PHP project on localhost:8080"?
I'm not looking for an all-in-one-solution like XAMPP or WAMP.
Solution
Looks like PHP 5.4 added this capability:
http://www.php.net/manual/en/features.commandline.webserver.php
OTHER TIPS
you might want to look at http://nanoweb.si.kz/
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow