

Per UserĪssuming you have a ~/bin directory set up added to your $PATH, you can run the following linux command to add Composer to that directory. Either way will work the same for the user. You can either install it on a system-wide basis, or you can install it on a per-user basis. You have the option of where you want to install Composer.


If the command returns “Installer verified,” you’re good to keep going. Replace “SIGNATURE” with the one you copied from the site. $ php -r "if (hash_file('SHA384', 'composer-setup.php') = 'SIGNATURE') echo PHP_EOL " Then, plug it in to the following linux command. Go to the Composer website’s signature page, and copy the signature at the top of the page. It’s best to verify the integrity of the installer after you have it. It won’t take long to download the installer. $ php -r "copy('', 'composer-setup.php') " Once there, use PHP to grab the installer. It’s just easier to clean up after the installation that way.

Go ahead and install them with Apt.Ĭd into your /tmp directory. There are only a couple of things that you’ll need in order to get Composer running. Installing it directly from the development team is easy regardless. Though Composer is in the Debian repositories, the version there is terribly out-of-date. As a result, many modern PHP projects rely on Composer. It also helps handle project dependencies.
