Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

gust's avatar
Level 1

Fatal error: Class 'Illuminate\Foundation\Application' not found in /bootstrap/app.php on line 14 from php artisan serve

Newbie here, Using macOS Sierra This has been the second time I downloaded a laravel project from github which I tried to run php artisan serve and get the response Fatal error: Class 'Illuminate\Foundation\Application' not found in ... Downloads/quiz-master/bootstrap/app.php on line 14

I have googled and tried composer dump-autoload and tried deleting the composer.lock and vendor folder and retried php artisan serve but still getting the error

I tries composer install but I get

Your requirements could not be resolved to an installable set of packages.

Problem 1 - laravel/framework v5.0.9 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.

I'm not sue if I need to install mcrypt(which i dont know how to on php 7) or if there is just something simpler i need to fix

https://github.com/imranshuvo/quiz

0 likes
3 replies
bobbybouwmann's avatar

It looks like you are downloading an old version of Laravel (v5.0.9). Also I'm not sure if this project is PHP 7 compatible.

Anyway you can install mcrypt for php7 on mac like so

brew install php70-mcrypt
bobbybouwmann's avatar

BTW: The project is working fine for me! I did the following steps:

  • git clone [email protected]:imranshuvo/quiz.git
  • cd quiz
  • composer install
  • php artisan serve

The project works fine, however it has some bugs in it anyway.... You are better off building it yourself

gust's avatar
Level 1

Interesting. I tried your steps but got the 'Application not found' error again maybe the project is just buggy, I will have to try cloning more projects . Also tried installing mcrypt via the command on terminal and but got

some stuff.. ...checking whether we are cross compiling... configure: error: in /private/tmp/xz-20170215-6621-15tdt3e/xz-5.2.2': configure: error: cannot run C compiled programs. If you meant to cross compile, use--host'. See `config.log' for more details

and the installation seemed to have failed having ran php -m and there is no mcrypt on the list and having ran extension_loaded('mcrypt'); with an if shows its not loaded

Please or to participate in this conversation.