Why do Composer commands start with "php"?

0

I have installed composer with the windows installer and I see that to use install you should use php composer install miProyecto but (I use windows, maybe it is different here) this indicates that there is no such composer command. However, if I use composer install miProyecto it works perfectly. What difference is there in using or not php before the commands?

    
asked by RicardoKra 07.12.2018 в 11:55
source

1 answer

1

Response from Jakala: Composer is a tool made in PHP. If you have a php interpreter in your system, the tool has execution permissions and the interpreter can be located in your PATH, you can invoke it directly with the name. (composer install ...) In case of not having the interpreter in your PATH routes, the system would not be able to execute it. You should call the interpreter directly (this would be something like / usr / bin / php composer install ....

    
answered by 09.12.2018 в 16:17