title: Use PHP composer to clone git repo
body: <p>I'm trying to use <a href="http://getcomposer.org/" rel="noreferrer">composer</a> to automatically clone a git repository from github that isn't in <a href="https://packagist.org/" rel="noreferrer">packagist</a> but it's not working and I can't figure out what am I doing wrong.</p>
  
  <p>I think I have to include it among "repositories" like so:</p>
  
  <pre><code>"repositories": [
      {
          "url": "https://github.com/l3pp4rd/DoctrineExtensions.git",
          "type": "git"
      }
  ],
  </code></pre>
  
  <p>and then probably list it in "require" section. It should be similar to <a href="http://getcomposer.org/doc/05-repositories.md#package-2" rel="noreferrer">this example</a> but it doesn't work. It just gives this error:</p>
  
  <blockquote>
    <p>Your requirements could not be resolved to an installable set of packages.</p>
  </blockquote>
  
  <p>Have anyone tried to do something like this already?</p>