Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

 

Code Block
languagephp
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
languagephp
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:

...