title: How to install Symfony2 Bundles with Composer
body: <p>I'm using Windows and I installed composer from its Windows installer. What I want to do is to install <a href="http://symfony.com/doc/current/bundles/DoctrineMigrationsBundle/index.html" rel="nofollow">DoctrineMigrationsBundle</a> to my project, so I added </p>
  
  <p><code>"doctrine/doctrine-migrations-bundle": "dev-master"</code></p>
  
  <p>to the <code>composer.json</code> file in the project and run</p>
  
  <pre><code>cd the project directory
  php composer.phar update
  </code></pre>
  
  <p>but what I get is: Could not open input file: composer.phar</p>
  
  <p>My whole composer.json file is </p>
  
  <pre><code>{
      "name": "symfony/framework-standard-edition",
      "description": "The \"Symfony Standard Edition\" distribution",
      "autoload": {
          "psr-0": { "": "src/" }
      },
      "require": {
          "php": "&gt;=5.3.3",
          "symfony/symfony": "2.1.*",
          "doctrine/orm": "&gt;=2.2.3,&lt;2.4-dev",
          "doctrine/doctrine-bundle": "1.1.*",
          "twig/extensions": "1.0.*@dev",
          "symfony/assetic-bundle": "2.1.*",
          "symfony/swiftmailer-bundle": "2.1.*",
          "symfony/monolog-bundle": "2.1.*",
          "sensio/distribution-bundle": "2.1.*",
          "sensio/framework-extra-bundle": "2.1.*",
          "sensio/generator-bundle": "2.1.*",
          "jms/security-extra-bundle": "1.2.*",
          "jms/di-extra-bundle": "1.1.*",
          "kriswallsmith/assetic": "1.1.*@dev"
          "doctrine/doctrine-migrations-bundle": "dev-master"
      },
      "scripts": {
          "post-install-cmd": [
              "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
              "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
              "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
              "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
          ],
          "post-update-cmd": [
              "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::buildBootstrap",
              "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::clearCache",
              "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installAssets",
              "Sensio\\Bundle\\DistributionBundle\\Composer\\ScriptHandler::installRequirementsFile"
          ]
      },
      "extra": {
          "symfony-app-dir": "app",
          "symfony-web-dir": "web"
      }
  }
  </code></pre>
  
  <p>Can you please help me to fix this?</p>