vee vee - 8 days ago 4
PHP Question

How to run .phar from anywhere on Windows?

I have .phar file and i want to run it from anywhere with this command.

php file.phar --options

where file.phar is in C:\my-php-cli\file


You would need to add the folder containing file.phar to your path variable.

See this link for more information.