How to install composer on Amazon Linux
Dependency Manager for PHP
Availability
Compare package tracks by distribution and architecture. Checkmarks show the architectures available in each repository channel.
| Distro | Channel | noarch | Version |
|---|---|---|---|
| Amazon Linux 2 | Base | 1.10.27 |
Description
Composer helps you declare, manage and install dependencies of PHP projects, ensuring you have the right stack everywhere. Documentation: https://getcomposer.org/doc/
Built for Amazon Linux.
Install
Base
Amazon Linux 2
composer on Amazon Linux 2
sudo dnf -y install https://extras.getpagespeed.com/release-latest.rpm sudo dnf -y install composer
Package downloads require an active GetPageSpeed subscription — one repository for composer and thousands more packages for Amazon Linux.
Subscribe — from $10/moFrequently asked questions
How do I install composer on Amazon Linux?
Add the GetPageSpeed repository, then install the composer package with your system package manager.
Which Amazon Linux versions is composer available for?
composer is available for Amazon Linux 2.