Composer on CloudSonic

Install PHP dependencies on your CloudSonic server the moment it's live, no setup required

TL;DR Composer

Composer is pre-installed on every CloudSonic server so PHP developers can manage dependencies without any setup. Run composer install the moment your server is live.

Composer is a dependency manager for PHP that handles library installation and version management for modern PHP applications. It is pre-installed on every CloudSonic server so you can run composer install the moment your server is live without any setup. CloudSonic manages the underlying PHP environment that Composer and your dependencies require.

Prerequisites

Composer for PHP Dependency Management on CloudSonic

Composer is pre-installed on every CloudSonic server so you can run composer install or composer update immediately over SSH without any setup. CloudSonic manages the underlying PHP environment including the extensions that Composer and your dependencies require, and multiple PHP versions can run simultaneously on the same server so Composer can target whichever version your application needs. For applications that use Composer as part of a CI/CD pipeline, CloudSonic's full root access means you can trigger composer commands remotely via SSH from GitHub Actions or GitLab CI.

Useful Commands

composer install --no-dev --optimize-autoloader