...
| Code Block | ||
|---|---|---|
| ||
user@server [~]# cd bin/ user@server [~/bin]# wget https://getcomposer.org/installer user@server [~/bin]# php installer --check All settings correct for using Composer user@server [~/bin]# php installer All settings correct for using Composer Downloading... Composer successfully installed to: /home/user/bin/composer.phar Use it: php composer.phar user@server [~/bin]# rm -f installer |
| Info |
|---|
Composer's site, getcomposer.org, suggests to run this command: "curl -sS https://getcomposer.org/installer | php", but no professional would execute a script without checking it first. |
A Small Tip #1:
Add the following lines to ~/.bashrc to run the commands as "composer" instead of the full command of "php -d disable_functions= ~/bin/composer.phar":
| Code Block | ||
|---|---|---|
| ||
alias php="php -d disable_functions=" alias composer="php ~/bin/composer.phar" |
| Note |
|---|
"-d disable_functions=" is very important parameter here, because composer requires some disabled functions (like escapeshellarg or proc_open. |
b) Install your first project:
...