Before you begin
You need:- An Upsun project using PHP and Composer
- Credentials to access a private third-party Composer repository
- The Upsun CLI
1. Declare a private Composer repository
To allow Composer to download packages from a private third-party repository, declare the repository in your Composer setup.2. Set up Composer authentication using a variable
To allow Composer to successfully authenticate when accessing the declared private repository, set anenv:COMPOSER_AUTH variable for your project.
To do so, run the following command:
The env: prefix means that the variable is exposed
as its own Unix environment variable.
The --visible-runtime false and --visible-build true flags mean the variable is available to Composer only during the build.