title: Laravel 4 - problems with composer
body: <p>I'm trying to execute this command(below)</p>
  
  <pre><code>composer create-project laravel/laravel TestApp --prefer-dist
  </code></pre>
  
  <p>Here is the error I am getting: </p>
  
  <pre><code>Mcrypt PHP extension required.
  Script php artisan clear-compiled handling the post-install-cmd event returned with an error
  
  
  
  [RuntimeException]  
  Error Output:       
  
  
  
  create-project [-s|--stability="..."] [--prefer-source] [--prefer-dist] [--repository-     url="..."] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [--keep-vcs] [--no-install] [package] [directory] [version]
  </code></pre>
  
  <p>I've cheked: </p>
  
  <blockquote>
    <p>php -v </p>
  </blockquote>
  
  <p>PHP 5.4.24 </p>
  
  <blockquote>
    <p>sudo composer diagnose</p>
  </blockquote>
  
  <p>Checking platform settings: OK
  Checking git settings: OK
  Checking http connectivity: OK
  Checking disk free space: OK
  Checking composer version: OK</p>
  
  <p>any idea??</p>
  
  <p>Thanks</p>