如何在Ubuntu 18.04中的PHP内置服务器上运行Slim Framework应用程序?

PHP built-in server Run the following command in terminal to start localhost web server, assuming ./public/ is public-accessible directory with index.php file:

php -S localhost:8888 -t public public/index.php If you are not using index.php as your entry point then change appropriately.

This is the instructions from slimframework.com, but I couldn't assume what type of folder index.php should go in? Arguments in php command are not explained. I get blank page or Uncaught Error: Class Slim\Slim not found....

You can goto public folder and run command "php -S localhost:8888"