vee vee - 4 months ago 30
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

Answer Source

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

See this link for more information.