1
0
Fork 0

Merge pull request #3551 from alcohol/minor-documentation-adjustments

WIP: rewriting some documentation sections
pull/3082/merge
Jordi Boggiano 2014-12-13 18:06:37 +00:00
commit e1921ac962
3 changed files with 15 additions and 40 deletions

View File

@ -47,7 +47,7 @@ any version beginning with `1.2`.
## System Requirements ## System Requirements
Composer requires PHP 5.3.2+ to run. A few sensitive php settings and compile Composer requires PHP 5.3.2+ to run. A few sensitive php settings and compile
flags are also required, but the installer will warn you about any flags are also required, but when using the installer you will be warned about any
incompatibilities. incompatibilities.
To install packages from sources instead of simple zip archives, you will need To install packages from sources instead of simple zip archives, you will need
@ -56,14 +56,17 @@ git, svn or hg depending on how the package is version-controlled.
Composer is multi-platform and we strive to make it run equally well on Windows, Composer is multi-platform and we strive to make it run equally well on Windows,
Linux and OSX. Linux and OSX.
## Installation - *nix ## Installation - Linux / Unix / OSX
### Downloading the Composer Executable ### Downloading the Composer Executable
There are in short, two ways to install Composer. Locally as part of your
project, or globally as a system wide executable.
#### Locally #### Locally
To actually get Composer, we need to do two things. The first one is installing Installing Composer locally is a matter of just running the installer in your
Composer (again, this means downloading it into your project): project directory:
```sh ```sh
curl -sS https://getcomposer.org/installer | php curl -sS https://getcomposer.org/installer | php
@ -76,8 +79,8 @@ curl -sS https://getcomposer.org/installer | php
php -r "readfile('https://getcomposer.org/installer');" | php php -r "readfile('https://getcomposer.org/installer');" | php
``` ```
This will just check a few PHP settings and then download `composer.phar` to The installer will just check a few PHP settings and then download `composer.phar`
your working directory. This file is the Composer binary. It is a PHAR (PHP to your working directory. This file is the Composer binary. It is a PHAR (PHP
archive), which is an archive format for PHP which can be run on the command archive), which is an archive format for PHP which can be run on the command
line, amongst other things. line, amongst other things.
@ -106,17 +109,6 @@ mv composer.phar /usr/local/bin/composer
Then, just run `composer` in order to run Composer instead of `php composer.phar`. Then, just run `composer` in order to run Composer instead of `php composer.phar`.
#### Globally (on OSX via homebrew)
Composer is part of the homebrew-php project.
```sh
brew update
brew tap homebrew/dupes
brew tap homebrew/php
brew install composer
```
## Installation - Windows ## Installation - Windows
### Using the Installer ### Using the Installer

View File

@ -1,29 +1,8 @@
# Basic usage # Basic usage
## Installation ## Installing
To install Composer, you just need to download the `composer.phar` executable. If you have not yet installed Composer, refer to to the [Intro](00-intro.md) chapter.
```sh
curl -sS https://getcomposer.org/installer | php
```
For the details, see the [Introduction](00-intro.md) chapter.
To check if Composer is working, just run the PHAR through `php`:
```sh
php composer.phar
```
This should give you a list of available commands.
> **Note:** You can also perform the checks only without downloading Composer
> by using the `--check` option. For more information, just use `--help`.
>
> ```sh
> curl -sS https://getcomposer.org/installer | php -- --help
> ```
## `composer.json`: Project Setup ## `composer.json`: Project Setup

View File

@ -482,6 +482,10 @@ performance.
a bit of time to run so it is currently not done by default. a bit of time to run so it is currently not done by default.
* **--no-dev:** Disables autoload-dev rules. * **--no-dev:** Disables autoload-dev rules.
## clear-cache
Deletes all content from Composer's cache directories.
## licenses ## licenses
Lists the name, version and license of every package installed. Use Lists the name, version and license of every package installed. Use