title: How to install Zend Framework 2 Tool with composer
body: <p>I can't figure out how to run zf.php (Zend Framework 2 Tool) when bootstrapped with composer.</p>
  
  <p>First I bootstrap composer and zftool according to the documentation:</p>
  
  <pre><code>$ mkdir tmp &amp;&amp; cd tmp
  $ curl -s https://getcomposer.org/installer | php
  $ ./composer.phar require zendframework/zftool:dev-master
  </code></pre>
  
  <p>This works fine so far.</p>
  
  <p>But when I try to run zf.php, I get errors:</p>
  
  <pre><code>$ vendor/zendframework/zftool/zf.php 
  PHP Warning:  require_once(/Users/seb/tmp/vendor/zendframework/zftool/vendor/autoload.php): failed to open stream: No such file or directory in /Users/seb/tmp/vendor/zendframework/zftool/zf.php on line 13
  
  Warning: require_once(/Users/seb/tmp/vendor/zendframework/zftool/vendor/autoload.php): failed to open stream: No such file or directory in /Users/seb/tmp/vendor/zendframework/zftool/zf.php on line 13
  PHP Fatal error:  require_once(): Failed opening required '/Users/seb/tmp/vendor/zendframework/zftool/vendor/autoload.php' (include_path='.:/opt/local/lib/php') in /Users/seb/tmp/vendor/zendframework/zftool/zf.php on line 13
  
  Fatal error: require_once(): Failed opening required '/Users/seb/tmp/vendor/zendframework/zftool/vendor/autoload.php' (include_path='.:/opt/local/lib/php') in /Users/seb/tmp/vendor/zendframework/zftool/zf.php on line 13
  </code></pre>
  
  <p>What am I doing wrong? I'm using PHP 5.3.21 on Mac.</p>
  
  <p>I also tested it on my Debian VServer with PHP 5.4, same error :(</p>