SSH your NAS, and issue the install commands (note: change folder accordingly to where you want to install it example below will be in current directory):.For composer to work properly User Home service is recommended to be active (Control Panel > Advanced > User > User Home).DSM Package PHP 7.3 (you can use 5.6 as well).
Here are some simple instructions on how to get Composer working along your Web Station package for app/web development.