Skip to content

Composer

Composer manages PHP project dependencies. Install compatible PHP first.

Available versions

The composer package version from the server repositories. The catalog does not select a separate Composer branch or accept a custom release number in this workflow.

These options come from the application installation catalog. A catalog entry alone does not guarantee package availability on every server; verify the exact installed version in the service inventory.

Prepare

  1. Select Composer in services and wait for installation completion.
  2. Check composer --version and the PHP used for execution.
  3. Review the project's composer.json and any composer.lock.

Use in a project

Install dependencies in the directory containing composer.json, as a user with project file permissions. Include the command in a deployment script when appropriate.

Deploying locked dependencies typically uses composer install; composer update resolves dependency changes and may modify the lockfile. Follow the application's development workflow.

Errors

Check the first output error, PHP version, extensions, working directory and permissions. Composer may run repository-defined scripts; their success also depends on the application environment.

Installing Composer does not install every project's dependencies, run migrations or create web server configuration. Continue with your deployment workflow after preparing dependencies.