Turn on PHAR directive from DSM Control Panel
shh into BusyBox
cd to the project directory
get composer from getcomposer.org
curl -sS https://getcomposer.org/installer | php
Enable Customize PHP open_basedir from DSM control panel and append the following path to it.
:/root:/usr/bin
Restart apache
/usr/syno/etc/rc.d/S97apache-user.sh restart