Using repositories type path in monorepository, allows to require a composer vendor as a symlink from directory path.
When you run composer i
this create a symlink in vendor/abenevaut/php-sdk
from ../php-sdk
.
Like this, you are able to dev your main project and the vendor at the same time.
Once you are ready to push the project to production, you don't want the symlink anymore and use the latest content of php-sdk
vendor.
You can specify COMPOSER_MIRROR_PATH_REPOS=1
to copy directories and files, like normal way to use composer package, from php-sdk
.
/!\ You have to deploy from a pipeline who have clone the whole monorepository base code.