atom-autocomplete-php
atom-autocomplete-php copied to clipboard
Ability to use composer from PATH
I am loving the plugin, good work there. On to the question: I'm using sync-settings to transfer my configuration between home and work. Using php from path makes me able to not use absolute names, but for some reason composer.phar requires the absolute path, and I can't just add "composer" (which I added to PATH). There's probably a valid reason for this not working, but could you explain it to me/revisit it?
If you're syncing stuff, and this does not work, what you might want to do is set COMPOSER_HOME
to the same folder on your work and home computer, then install composer
via composer.phar
globally, and then specifying the full composer
path in Atom.
Here's an example of what I mean:
mkdir /var/composer
export COMPOSER_HOME=/var/composer
echo COMPOSER_HOME=/var/composer >> ~/.bashrc
composer.phar global require composer/composer
# now use: /var/composer/vendor/bin/composer
With that, you can sync the /var/composer
directory, for instance via a symlink to your Dropbox
folder if that's what you're using.