simplify the readme, defer to documentation
parent
04605e4f90
commit
a480e53234
31
README.md
31
README.md
|
@ -1,7 +1,7 @@
|
||||||
Composer - Dependency Management for PHP
|
Composer - Dependency Management for PHP
|
||||||
========================================
|
========================================
|
||||||
|
|
||||||
Composer helps you declare, manage and install dependencies of PHP projects, ensuring you have the right stack everywhere.
|
Composer helps you declare, manage and install dependencies of PHP projects.
|
||||||
|
|
||||||
See [https://getcomposer.org/](https://getcomposer.org/) for more information and documentation.
|
See [https://getcomposer.org/](https://getcomposer.org/) for more information and documentation.
|
||||||
|
|
||||||
|
@ -12,33 +12,12 @@ See [https://getcomposer.org/](https://getcomposer.org/) for more information an
|
||||||
Installation / Usage
|
Installation / Usage
|
||||||
--------------------
|
--------------------
|
||||||
|
|
||||||
1. Download and install Composer by following the [official instructions](https://getcomposer.org/download/).
|
Download and install Composer by following the [official instructions](https://getcomposer.org/download/).
|
||||||
2. Create a composer.json defining your dependencies. Note that this example is
|
|
||||||
a short version for applications that are not meant to be published as packages
|
|
||||||
themselves. To create libraries/packages please read the
|
|
||||||
[documentation](https://getcomposer.org/doc/02-libraries.md).
|
|
||||||
|
|
||||||
``` json
|
Packages
|
||||||
{
|
--------
|
||||||
"require": {
|
|
||||||
"monolog/monolog": ">=1.0.0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
3. Run Composer: `php composer.phar install`
|
Find packages on [Packagist](https://packagist.org).
|
||||||
4. Browse for more packages on [Packagist](https://packagist.org).
|
|
||||||
|
|
||||||
Global installation of Composer (manual)
|
|
||||||
----------------------------------------
|
|
||||||
|
|
||||||
Follow instructions [in the documentation](https://getcomposer.org/doc/00-intro.md#globally)
|
|
||||||
|
|
||||||
Updating Composer
|
|
||||||
-----------------
|
|
||||||
|
|
||||||
Running `php composer.phar self-update` or equivalent will update a phar
|
|
||||||
install to the latest version.
|
|
||||||
|
|
||||||
Community
|
Community
|
||||||
---------
|
---------
|
||||||
|
|
Loading…
Reference in New Issue