composer install -h. There you’ll find an option
-d). And that’s what you’re looking for.
composer install -d=/home/someuser/myproject
You can find more in composer docs.
Depending on your operating system, the
= might need to be removed:
composer install -d /home/someuser/myproject