Question : run a server php terminal
Answered by : nighter
$ cd ~/public_html
$ php -S localhost:8000
Source : https://www.php.net/manual/fr/features.commandline.webserver.php | Last Update : Sun, 29 Mar 20
Question : execute php in terminal
Answered by : paras-suthar-darji
just simply type
php -a
Source : | Last Update : Sun, 12 Jun 22
Question : php run command terminal
Answered by : alberto-peripolli
php -r "Print \"Hello, World!\";"
Source : https://stackoverflow.com/questions/7669906/how-to-execute-php-block-from-terminal-without-saving-to-a-file | Last Update : Wed, 17 Feb 21
Question : run phpstan terminal
Answered by : amadou-bah
vendor/bin/phpstan analyse [options] [<paths>...]
Source : | Last Update : Mon, 03 May 21