I installed composer global at a Webhosting-Server. Now I can call it via
composer
But if I want to install something I get a memory limit er
alias composer='php -d memory_limit=1024M -d suhosin.executor.include.whitelist=phar,http://,https:// /is/htdocs/xxxxxx_xxxxx/script/composer/composer.phar'
Worked for me
I use an alias for composer so I don't need to call the whole path if I want to use composer. But with this alias I am not able to call composer via "composer.phar". So I added the memory limit command to the alias function which worked for me.