Installing Composer in Mac OSX

There are a few steps before we can use composer command in the MacOS

curl -sS https://getcomposer.org/installer | php

Next,

sudo mv composer.phar /usr/local/bin/

Step 3

sudo chmod 755 /usr/local/bin/composer.phar

Now, we will tell Bash about the location to execute Composer

nano ~/.bash_profile

Add below line in the bash_profile and hit CLTR + X

alias composer="php /usr/local/bin/composer.phar"

Next, run the below command

source ~/.bash_profile

Now, you can check the composer version

composer -v

Let me know if you face the difficulty in the setting this up by writing in the below comment section

Newsletter

Make sure to subscribe to my newsletter and be the first to know about my new post.

Subscribe on Youtube
FOR UPDATES

I post tutorials about various technologies on the youtube channel

Subscribe Now
Newsletter

Make sure to subscribe to my newsletter and be the first to know about my new post.

© 2020