Currently, the PHP Composer Extension can only be configured to read the
composer.json file from the document root.
Can PHP Composer Extension use
composer.json file outside the document root (
The feature has been implemented in scope of EXTPHPCOMP-71 feature request and is available since 1.0.2 version of PHP Composer.