Question
How to change the path of the composer.json file in the PHP Composer extension?
Answer
Note: The feature has been implemented in the scope of the #EXTPHPCOMP-71 feature request and it'ss available since 1.0.2 version of PHP Composer. Make sure that the PHP Composer extension is up to date: Install the latest updates for extensions
- 
Go to Domains > example.com > PHP Composer > Click [change] > Select the path of the application containing the
composer.jsonfile > Click Change folder 
For composer.json files added after the initial scan
Linux:
- 
Connect to the server via SSH
 - Run command below in the CLI
# plesk ext composer --application -register -domain example.com -path httpdocs/one.example.com/
 - Go to Domains > example.com > PHP Composer Extension > click "Change".
 
Windows:
- 
Connect to the server via RDP
 - Run command below in the CLI
C:> plesk ext composer --application -register -domain example.com -path httpdocs/one.example.com/
 - Go to Domains > example.com > PHP Composer Extension > click "Change".