title: Symfony2 install bundles with composer
body: <p>I'm creating a site using the Symfony 2 and I have big problems with installing <code>KnpMenuBundle</code>. I read a lot about such problems. And I tried a lot of variants how to fix this. But nothing helps.</p>
  
  <p>This is my <code>composer.json</code> file:</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.2.*",
          "doctrine/orm": "~2.2,&gt;=2.2.3",
          "doctrine/doctrine-bundle": "1.2.*",
          "twig/extensions": "1.0.*",
          "symfony/assetic-bundle": "2.1.*",
          "symfony/swiftmailer-bundle": "2.2.*",
          "symfony/monolog-bundle": "2.2.*",
          "sensio/distribution-bundle": "2.2.*",
          "sensio/framework-extra-bundle": "2.2.*",
          "sensio/generator-bundle": "2.2.*",
          "jms/security-extra-bundle": "1.4.*",
          "jms/di-extra-bundle": "1.3.*",
          "doctrine/doctrine-fixtures-bundle": "dev-master",
          "doctrine/data-fixtures" : "dev-master",
          "knplabs/knp-paginator-bundle": "dev-master",
          "apy/datagrid-bundle": "2.2.*@dev",
          "friendsofsymfony/user-bundle": "*",
          "jms/security-extra-bundle": "1.4.x-dev",
          "knplabs/knp-menu-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"
          ]
      },
      "config": {
          "bin-dir": "bin"
      },
      "minimum-stability": "dev",
      "extra": {
          "symfony-app-dir": "app",
          "symfony-web-dir": "web",
          "branch-alias": {
              "dev-master": "2.2-dev"
          }
      }
  }
  </code></pre>
  
  <p>and here is what I got in console</p>
  
  <pre><code>D:\Work\YouMustKnowIt_portal\Symfony&gt;php composer.phar update
  Loading composer repositories with package information
  Updating dependencies (including require-dev)
  Your requirements could not be resolved to an installable set of packages.
  
    Problem 1
      - Installation request for knplabs/knp-menu-bundle dev-master -&gt; satisfiable
   by knplabs/knp-menu-bundle[dev-master].
      - knplabs/knp-menu-bundle dev-master requires knplabs/knp-menu 2.0.* -&gt; no m
  atching package found.
  
  Potential causes:
   - A typo in the package name
   - The package is not available in a stable-enough version according to your min
  imum-stability setting
     see &lt;https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion&gt; f
  or more details.
  
  Read &lt;http://getcomposer.org/doc/articles/troubleshooting.md&gt; for further common
   problems.
  </code></pre>