GoAdmio Command Line: composer with /go/composer

Composer downloads and updates the PHP libraries that a website needs, such as the ones used by Laravel, Symfony, and many WordPress tools. /go/composer installs it on the server so that you, or GoAdmio's own commands, can run composer from the command line. It installs the package that comes with the operating system. It does not download Composer from the Composer website. Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.

Quick start

/go/composer

Examples

# Install Composer
/go/composer

# Check that it works
composer --version

# Install a site's PHP libraries, running as the site's own user (use the account's username)
cd /home/example.com/www
sudo -u example.com composer install

# Review recent calls
tail /var/log/go/composer.log

Output

The command shows a progress bar titled Installing Composer. The package manager’s own messages can appear too.

There is no final message. Check the result with:

composer --version

On an operating system that is not listed below, the command does nothing and prints nothing.

See the full reference at /go/composer and the GoAdmio command index.

GoAdmio is free and open source, with no license fees and no account limits. Read the GoAdmio docs, or see why it is a free cPanel alternative at goadmio.com.

By:

Posted in:


Leave a Reply

Your email address will not be published. Required fields are marked *