Using Composer in MODX Cloud
Modern PHP applications virtually mandate that Composer is used. Fortunately, MODX Cloud supports it by default with a quick trip to the command line:
-
From the Cloud instance where you wish to use Composer, make note of the internal Cloud URL, and SSH credentials.
-
Open your terminal, shell or Putty to login via
ssh
into your Cloud instance -
Download and install the advanced tool scripts (you’ll get wp-cli, too):
sh -c "$(curl https://modx.co/scripts/install.sh)"
- Either logout and back into the
ssh
session for Composer to be available. Or, use thesource
command provided. - Use the following command to confirm that Composer is installed:
composer --version
- That is all.