From 08a0de93169eee05ea167e911f6000bc6d7db174 Mon Sep 17 00:00:00 2001 From: Haralan Dobrev Date: Fri, 5 Sep 2014 12:00:50 +0300 Subject: [PATCH] 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 --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1c6c7bf..4ec18cb 100644 --- a/README.md +++ b/README.md @@ -14,16 +14,16 @@ and run tasks for that freshly deployed code. Simply add the following dependency to your project’s composer.json file: ```js - "require": { + "require-dev": { // ... - "andres-montanez/magallanes": "1.0.*" + "andres-montanez/magallanes": "~1.0.1" // ... } ``` Now tell we update the vendors: ```bash -$ php composer update +$ php composer update andres-montanez/magallanes ``` And finally we can use Magallanes from the vendor's bin: @@ -35,7 +35,7 @@ $ bin/mage version ### System-wide installation with composer ### ```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.