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
- Select Composer in services and wait for installation completion.
- Check
composer --versionand the PHP used for execution. - Review the project's
composer.jsonand anycomposer.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.