T
T
thunderbird27112018-03-22 23:15:09
open server
thunderbird2711, 2018-03-22 23:15:09

How to make composer work in openserver?

I wanted to install sublimelinter-phpcs from the video, you need to install it with the following command composer global require "squizlabs/php_codesniffer=*"
but for some reason the openserver console displays
> composer global require "squizlabs/php_codesniffer=*"
"composer" is not internal or external
command, executable program, or batch file.
tell me how to make it work?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hyget, 2018-03-22
@hyget

When installing composer, you need to select php.exe, which is in the folder with openserver, it must match the one selected in the server configuration.
And you also need to add composer to your PATH environment variable.
Computer-properties-additional parameters-environment variables-path

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question