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

FounderStartup's avatar

MacOS Monterey does not have php ? Which dev environment for laravel ?

I want to update to latest MacOS Monterey but found that it does not have pre installed php ? I use XAMPP for laravel 8 development. What should I do ? Can I install php in Monterey or need to use some other environment for laravel 8 development ?

0 likes
9 replies
webrobert's avatar

@founderstartup i used to use mamp but now I just use Brew to install what I need. It’s been a little while since I set up a machine. Generally every two years. But you can absolutely install php on Mac. I’ve done it for the last dozen years.

Edit: and I think you have to install Xcode too

2 likes
FounderStartup's avatar

@Tray2 Thanks. Is there any reliable online environment for laravel development also available ? I need phpadmin also.

Sinnbeck's avatar

@FounderStartup You normally run development on your local machine and set up the environment there as @tray2 explained. Jetbrains are on their way with a development system in the cloud but it currently does not support php.

For production you find a provider that support php. Personally I would use Digital ocean, but it requires a bit of knowhow (but most can be read in tutorials)

1 like
automica's avatar

Get familiar with docker / laravel sail. Docker will allow you to spin up very specific environments for your projects and doesn’t require you to install packages or package managers on your Mac such as brew that can get unwieldy and unpredictable when working with projects that require different php versions.

Docker images take very little resources (unlike running virtual machines) and you can also save your configuration in your repository, making it easy to collaborate with others

1 like
FounderStartup's avatar

Guys I finally upgraded to macOS monterey and then installed home-brew with php 7.4.

Things are working now on macOS monterey.

Thanks for your precious time.

Please or to participate in this conversation.