News公告

Synology NAS Installing Composer

Installing Composer

Become root
Enable the extensions as above (phar, openssl and zip are needed for Composer).

Get and install Composer:
cd /usr/local/bin
curl -s http://getcomposer.org/installer | php74

Create shortcut script ‘composer’ in /usr/local/bin:

!/bin/bash

php74 /usr/local/bin/composer.phar $*

Set permissions:
chmod –reference=composer.phar composer

Test:
composer –version