How to install composer on Amazon Linux

Dependency Manager for PHP

License: MIT Vendor: Fedora Project https://getcomposer.org/

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/mo

Frequently 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.

Subscribe