title: composer update without dependencies
body: <p><a href="https://i.stack.imgur.com/PKlCN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PKlCN.png" alt="enter image description here"></a>I am using yii2 framework since last few weeks. But now I am getting some issues with composer itself.</p>
  
  <p>Just for info, I am using ubuntu 14.04</p>
  
  <p>When I require some new package / extensions, I do the composer add by using composer require command. But I noticed that sometimes it's removing few of the existing packages from my vendor and project.</p>
  
  <p>I tried with following commands.</p>
  
  <pre><code>composer require dmstr/yii2-adminlte-asset "*"
  
  composer require 2amigos/yii2-file-upload-widget:~1.0
  </code></pre>
  
  <p>And also tried with some googling.</p>
  
  <p><a href="http://www.yiiframework.com/wiki/672/install-specific-yii2-vendor-extension-dependency-without-updating-other-packages/" rel="nofollow noreferrer">http://www.yiiframework.com/wiki/672/install-specific-yii2-vendor-extension-dependency-without-updating-other-packages/</a></p>
  
  <p>But it's not working.</p>
  
  <p>Is there a way to add a new package / extension into your existing yii 2 project without removing existing packages or without any composer update command?</p>
  
  <p><strong>Composer.json</strong></p>
  
  <pre><code>{
      "name": "sganz/yii2-advanced-api-template",
      "description": "Improved Yii 2 Advanced Application Template By Sandy Ganz, Original by Nenad Zivkovic",
      "keywords": ["yii2", "framework", "advanced", "improved", "application template", "nenad", "sganz"],
      "type": "project",
      "license": "BSD-3-Clause",
      "support": {
          "tutorial": "http://www.freetuts.org/tutorial/view?id=6",
          "source": "https://github.com/sganz/yii2-advanced-api-template.git"
      },
      "minimum-stability": "dev",
      "prefer-stable":true,
      "require": {
          "php": "&gt;=5.4.0",
          "yiisoft/yii2": "*",
          "yiisoft/yii2-bootstrap": "*",
          "yiisoft/yii2-swiftmailer": "*",
          "nenad/yii2-password-strength": "*",
          "mihaildev/yii2-ckeditor": "*",
          "dmstr/yii2-adminlte-asset": "*"
      },
      "require-dev": {
          "yiisoft/yii2-codeception": "*",
          "yiisoft/yii2-debug": "*",
          "yiisoft/yii2-gii": "*",
          "yiisoft/yii2-faker": "*",
          "codeception/specify": "*",
          "codeception/verify": "*"
      },
      "config": {
          "vendor-dir": "protected/vendor",
          "process-timeout": 1800
      },
      "extra": {
          "asset-installer-paths": {
              "npm-asset-library": "protected/vendor/npm",
              "bower-asset-library": "protected/vendor/bower"
          }
      }
  }
  </code></pre>
  
  <p>Any help on this would be greatly appreciated.</p>