title: How to solve memory limit and composer errors in Laravel project?
body: <p>When I run the Laravel project via <strong>php artisan serve</strong> I get an error about <strong>/vendor/autoload.php</strong> as no such file or directiory in <strong>/artisan</strong>. Then after I did couple of research I found that composer does not exist. Hence, I tried to update composer via <strong>composer update</strong> I get an error about the memory limit as such:</p>
  <blockquote>
  <p>Fatal error: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 67108864 bytes) in phar:///usr/local/Cellar/composer/1.10.7/bin/composer/src/Composer/DependencyResolver/Solver.php on line 223</p>
  </blockquote>
  <p>And then I try to increase the memory  to make the memory infinite with the command <strong>php -d memory_limit=-1</strong> but then, terminal is not giving me a response.
  I cloned the project through <strong>git</strong> and there is no <strong>.env</strong> file in my project. How can I solve the problem?</p>
  <p>When I run <strong>composer install</strong> I get the errors below.</p>
  <blockquote>
  <p>Problem 1
  - Installation request for laravel/horizon v4.3.3 -&gt; satisfiable by laravel/horizon[v4.3.3].
  - laravel/horizon v4.3.3 requires ext-pcntl * -&gt; the requested PHP extension pcntl is missing from your system.</p>
  </blockquote>
  <blockquote>
  <p>Problem 2
  - Installation request for phpoffice/phpspreadsheet 1.13.0 -&gt; satisfiable by phpoffice/phpspreadsheet[1.13.0].
  - phpoffice/phpspreadsheet 1.13.0 requires ext-zip * -&gt; the requested PHP extension zip is missing from your system.</p>
  </blockquote>
  <blockquote>
  <p>Problem 3
  - phpoffice/phpspreadsheet 1.13.0 requires ext-zip * -&gt; the requested PHP extension zip is missing from your system.
  - maatwebsite/excel 3.1.19 requires phpoffice/phpspreadsheet ^1.10 -&gt; satisfiable by phpoffice/phpspreadsheet[1.13.0].
  - Installation request for maatwebsite/excel 3.1.19 -&gt; satisfiable by maatwebsite/excel[3.1.19].</p>
  </blockquote>