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 ?
@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.
@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)
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