Answer the question
In order to leave comments, you need to log in
bashrc composer + php connection?
Previously, I had links to composer.phar and php.exe files in my ~/.bashrc file . In PhPStrom, this allowed executing PhP, Git, Composer commands from a single terminal. Now, alas, no.
Roughly from memory:
vim ~/.bashrc
export PATH="$PATH:~/.composer/vendor/bin""
link composer="адрес"
// в таком духе
alias composer_update="composer update"
alias command="php artisan cache clear"
....
[email protected]****W64 ~/Desktop/OpenServer/domains/mysite(master)
$ php -v
bash: php: command not found
Answer the question
In order to leave comments, you need to log in
Hello!
Confused by this phrase. Maybe you still have Linux?
However, in case you have Windows, you need to set the path to the composer and php executable file in the PATH environment variable . Then you can use them in the PhpStorm console.
If you have Linux, then I recommend creating a new file, for example: ~/.bash_aliases and write alias for Php and Composer
there
. For example:
alias php="/home/user/bin/path_to_php"
alias composer="php /home/user/bin/path_to_php/composer.phar"
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question