Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you.

Installation

Manual

For Linux and macOS. From W3 Schools.

$ curl -s https://getcomposer.org/installer | PHP

Make it available globally:

sudo mv composer.phar /usr/bin/composer

Windows - to go Download.

Package manager

With Homebrew on macOS:

$ brew install composer