title: Composer Error while installing Laravel "Failed to decode response: zlib_decode(): data error"
body: <p>I've already installed laravel a lot of times, but today when I had to install it for my project I experienced the following strange error:</p>
  
  <pre><code>Failed to decode response: zlib_decode(): data error
  Retrying with degraded mode
  </code></pre>
  
  <p>I ran the following command to install laravel:</p>
  
  <pre><code>composer create-project laravel/laravel myproject --prefer-dist
  </code></pre>
  
  <p>in my <code>/var/www/</code> directory which is totally read, write and executable. </p>