I just got my macbook pro today i followed a tutorial how to install composer globally I installed first mamp as local server then installed composer which works fine while i am in root directory on mac,then i created a bash profile and added a path
export PATH=" /.composer/vendor/bin:$PATH"
like this after this i created an alias to enter htdocs in MAMP and when i test it inside docs it says composer not found.
I appreciate everyone who will help me figure this one out.
I tried all methods from below,whenever i try to move it it says rename composer.phar to /usr/local/bin/composer/: No such directory..