PHP 8 cheatsheet
PHP 8: Command line
10 common PHP 8 tasks.
Start a development server
Serve the current folder at http://localhost:8000. For development only.
php -S localhost:8000
Serve a public folder with a router script
Serve a document root, sending unknown paths to a front controller.
php -S localhost:8000 -t public public/index.php
Read a configuration value
Print the value of a single configuration setting.
php -r "echo ini_get('memory_limit'), PHP_EOL;"