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

mikejakobsen's avatar

Laravel requires the Mcrypt PHP extension

During the Composer installation of Laravel, my OS X keeps messing with me..

I tried nearly everything - link the Mamp php - updating my general PHP version to 5.6.7 and tried installing Mcrypt through Homebrew, but no luck. And i can't call PHP Artisan because of the missing Mcrypt extension.

Can anybody help me?

0 likes
3 replies
martinbean's avatar

Check your php.ini file. Sounds like the mcrypt extension isn't actually enabled.

BENderIsGr8te's avatar

It's 100% useless to try and overcome this error using MAMP. As @unglued says, spend 15 minutes learning about Laravel Homestead / Vagrant and use that setup. The Homestead VM has everything configured exactly as you need it. You'll spend days and days trying to get mcrypt to work on your local machine (Mac for me). I finally gave up, went to Homestead, and then shook my head as to why I avoided using Homestead for so long. It's so much smoother and way better than MAMP.

1 like

Please or to participate in this conversation.