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

gustavobissolli's avatar

Laravel 4.2 + Laravel Valet + PHP 7 = Mcrypt PHP extension required

Hey guys!

I've just installed Laravel Valet and it's awesome working with Laravel 5.2 but I need to work with a project made in Laravel 4.2 and I can't run any "php artisan" command that I have "Mcrypt PHP extension required." error!

It does not happens with projects made in Laravel 5.2... Somebody knows why? It's using PHP 7 as da Valet Documentation advise!

There other issue that I know I am going to face and it's I am using Ardent Package on those projects made in Laravel 4... as I know by working with Homestead Ardent has something imcompatible with PHP 7 so I may be have to change PHP version to 5.6 sometimes to work on those old projects!

Somebody have any idea how to deal with this two issues?

My env: OS El Capitan + Laravel Valet (fresh installed) + PHP 7 + MariaDB

Thanks in advance!

0 likes
2 replies
bronxct1's avatar
Level 2

If you have installed php with brew you can try

brew install php70-mcrypt

6 likes
gustavobissolli's avatar

Great man!!

It worked perfectly!!

I am going to open a new topic to find a solution about the Ardent! it's off topic here =)

Please or to participate in this conversation.