Skip to the content
Documentation

Q: What Composer command-line do you have to use ?: compa...

No ratings yet

Versions Compared

Old Version 4

changes.mady.by.user Sarah Haïm-Lubczanski

Saved on Sep 23, 2014

compared with

New Version Current

changes.mady.by.user Sarah Haïm-Lubczanski

Saved on Sep 23, 2014

Key

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

...

You will use the command-line according to your installation.

    Locally Globally

Command-line

$> php composer.phar $> composer

Advantages

No rights needed
No configuration needed (out of the box)
Every user on the server can access to composer CLI
You have your Composer outside your web RootDirectory

Installation

Locally

Code Block
theme FadeToGrey
language powershell
curl -sS https://getcomposer.org/installer | php

or (according to your user rights on your system)

Code Block
theme FadeToGrey
language php
php -r "readfile('https://getcomposer.org/installer');" | php

Globally

Code Block
theme FadeToGrey
language powershell
curl -sS https://getcomposer.org/installer | php mv composer.phar /usr/local/bin/composer

 

 

Info
See the official Composer documentation for further documentation.

...

Comments

Add a comment

Comments are read by a moderator before they appear.