Composer is a dependency manager for PHP, that lets you manage dependencies by offering install/uninstall and options like creating projects.

It manages dependencies for you, big projects like Laravel framework and CMS like Grav use it to manage dependencies.

It’s easy to install it on Mac, all you have to do is run this curl command in your Terminal.

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

You will now have a composer.phar, which is executable.

You can move the file to the /usr/loca/bin directory to make it accessible from anywhere.

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

Now when you run composer from your terminal you should get a greeting screen from Composer.

Darryl Dias

I’m Darryl. I’m a 3D Generalist, Web Developer and Linux enthusiast. On this site I share my insights, tips and tricks, tutorials, methods and best practices.

Leave a comment

Your email address will not be published. Required fields are marked *