Live data from Hacker News

Ask HN: What's your PHP development environment setup?

news.ycombinator.com

1–10 of 14 posts

Ask HN: What's your PHP development environment setup?

#1
I got a Lenovo IdeaPad as a gift S340

I'm wondering if it's wroth installing Linux Ubuntu on on my Lenovo or just keeping my Windows 10 and learn PHP on windows?

What would you recommend? what are some of your setups so I can get some ideas.

It seems like is hard to install PHP Dev Env on Windows 10 it keeps asking to install redistributable.

I think MacBook was the best laptop I had because you can just install MAMP.

Re: Ask HN: What's your PHP development environment setup?

#4
Don't use MAMP.

Use whatever OS you like in terms of UI. If you enjoy MacOS, use it.

Run PHP in a container that matches your servers and has declarative infrastructure (Docker Compose, Vagrant, Ansible, Pulumi, whatever). All have boilerplate PHP configs you can download.

Then use PhpStorm. VS Code is free but not even in the ballpark in terms of static analysis, refactoring, linting, and autocomplete.

Re: Ask HN: What's your PHP development environment setup?

#5
I use PHP-Storm + Vagrant on Windows 10. There are plenty of pre-packaged Vagrant Boxes for this use case like VCCW [1] or Homestead [2]. Setup only takes a few minutes and you can keep your Windows 10 while using Ubuntu to run your PHP code.

[1] http://vccw.cc/ [2] https://laravel.com/docs/7.x/homestead

Re: Ask HN: What's your PHP development environment setup?

#8
post #7

If you're having a hard time with Visual C++ Redist. packages on Windows for WAMP, just try the packages on page bottom here: http://wampserver.aviatechno.net/?lang=en

That solved a lot of headache geee thanks.

Welcome
Post reply on HN