Answers for "how to run a php file in terminal"

PHP
17

run php server

cd path/to/your/app
php -S localhost:8000
Posted by: Guest on May-14-2020
-1

execute php file from command line

php -f /path/to/your/file.php
Posted by: Guest on October-02-2020
0

php run command terminal

php -r "Print \"Hello, World!\";"
Posted by: Guest on February-10-2021
0

run phpstan terminal

vendor/bin/phpstan analyse [options] [<paths>...]
Posted by: Guest on April-26-2021

Code answers related to "how to run a php file in terminal"

Browse Popular Code Answers by Language