Improve Composer notes in the readme

`require-dev` is better than `require` for such tool, because it is not
needed to be installed on production.

`composer update` without specifying vendor libraries as an argument
will try to update all dependencies which may not be desired.

Related to: https://github.com/andres-montanez/MagallanesSite/pull/3
This commit is contained in:
Haralan Dobrev 2014-09-05 12:00:50 +03:00
parent 680e4dd804
commit 08a0de9316

View file

@ -14,16 +14,16 @@ and run tasks for that freshly deployed code.
Simply add the following dependency to your projects composer.json file: Simply add the following dependency to your projects composer.json file:
```js ```js
"require": { "require-dev": {
// ... // ...
"andres-montanez/magallanes": "1.0.*" "andres-montanez/magallanes": "~1.0.1"
// ... // ...
} }
``` ```
Now tell we update the vendors: Now tell we update the vendors:
```bash ```bash
$ php composer update $ php composer update andres-montanez/magallanes
``` ```
And finally we can use Magallanes from the vendor's bin: And finally we can use Magallanes from the vendor's bin:
@ -35,7 +35,7 @@ $ bin/mage version
### System-wide installation with composer ### ### System-wide installation with composer ###
```bash ```bash
$ composer global require "andres-montanez/magallanes=1.0.*" $ composer global require "andres-montanez/magallanes=~1.0.1"
``` ```
Make sure you have ~/.composer/vendor/bin/ in your path. Make sure you have ~/.composer/vendor/bin/ in your path.