Why it’s not that bad to code PHP on Windows

Notice: This is a guest post by Oliver Hermanni
(you can visit his website or follow him on Twitter). He suggested to reply to my older post about PHP/Windows environment, so here’s his answer in an article form.

Some days ago Povilas wrote a post why it’s bad to code PHP on Windows. He got quite a lot of comments there and on Twitter – and to be honest, not all of them where nice. Unfortunately this is a regular problem – Apple users tend to overreact when it’s about Windows. I’m not sure, if most of them ever worked with Windows or why it’s still cool to hate it.

On the other hand, Windows users do the same. I’ve worked on all 3 major operating systems in the past – they all suck one way or another. I don’t want to get in detail, because this is not about which OS is the best. But I’d like to show that web development on Windows is not as bad as people (especially non-Windows users) think.


Let’s begin with the tools. People say, that you can’t use the same ones. But which really important tools should that be? I don’t see a single one where this is true for a regular PHP web developer.

Yes, the standard cmd is nothing compared to a shell. But then you can use Git Bash or Cygwin, which both give you (almost) a full featured shell.

Also there are great FTP clients (WinSCP), MySQL administration tools (most are even multiplatform), IDEs (ever heard of PHPStorm? 😉 ), etc.

Secondly – although this still is beta – now with Windows 10 Anniversary Update there’s “Bash on Ubuntu on Windows”, an Ubuntu overlay for Windows. As said, it’s beta and for me it’s not a real replacement to Git Bash yet, as gulp doesn’t work because of its internal structure. And as macOS/OSX is based on BSD Unix – not all commands work like they do on Linux. Also the filesystem is case insensitive (unless you enable it, which can be a problem with some software, like from Adobe). So basically it’s not that different from Windows.

Server architecture

Then there is server architecture. Everything macOS/OSX users have with MAMP I can do with XAMPP or EasyPHP (there are even more, but I haven’t used them). And they’re all free and full-featured. Why do people pay 39€ for MAMP Pro? All it does for most of you is to change 2 files – the vhost configuration of Apache and the hosts file. With a little bit of help from Google you can do this by yourself.

Some macOS/OSX users also say, that working on a Macbook is closer to a real server. Well, in the end the project probably lands on a Linux server, whose hardware architecture is as close to Apple hardware as it is to a standard PC. And that could become a bigger problem than directory structure. For my currently biggest Laravel project I use Forge on Digitalocean with just one tiny problem I had to fix: in the .env file of my dev environment I use an absolute path to a folder, where I store avatar images.


MacBooks look cool and they´re probably built for eternity. Some days ago I saw a girl using an old white MacBook. These things aren’t built anymore since 2011 and they’re still out there in the wild. On the other hand, PC laptops might be crap. Or so they say… Please don’t compare a 400€ laptop to a 1.200€ MacBook Pro.

The competitors here are Ultrabooks and they get better every year. Check out a Dell XPS13 or the new Lenovo Ideapad 710s. Their build quality is at least on par with any MacBook (Pro) available – maybe even better, as they use newer hardware. My Thinkpad Edge E330 from 2012 (then it costed around 450€) still is a good working companion, all I did exchange during the past years was a SSD and the battery (good luck with that on a MBP). I soon will replace it with one of the upper mentioned devices, because it runs my beloved Skyrim with only 14 to 20 fps.

Let´s not talk about how much Windows crashes. I had the same experience with my last MacBook Pro at work. Sometimes twice a week it crashed all services and I had to enter my admin password 25 times for each service to make it work again. Yes, it might have been a hardware problem. But that´s the main reason for many Windows crashes also. 😉


In the end it’s not so bad to develop on Windows. Yes, you have to install some workarounds and you might have to check out one thing or two. But it’s not that different from any other system. The hatred on Windows tends to get old – literally. Because it’s probably based on experiences with very old or bad versions of Windows (like XP or Vista) or with a lack of knowledge about computers at all (which in my experience is a serious problem with trainees and young developers). Don’t forget: it’s not a bad OS, which writes terrible code – it’s a bad developer. A shiny metal box doesn’t make you a great developer, years of hard work and experience do.

Like our articles?
Check out our Laravel online courses!


  1. I am a developer in my whole life, and I am 40 years old.
    It’s BAD to code in windows.. believe me.
    In the last years I am working on ubuntu linux and everything just works.
    Mac it’s good but the linux it’s better 🙂

    • Your age doesn’t prove a point. I’m 42. 😛

      And I’ve used Linux since the mid 90s. My first Linux distribution was a (then called) SUSE Linux 1.2.

      You are right, Linux is better. But I never found a point to really switch. Back in the days it was, because I was a Turbo Pascal and Delphi developer. And games. Today it’s games and Photoshop.

      And – what I forgot in my article – with vagrant (which I don’t use) the OS doesn´t matter at all.

  2. Well, I am 50 years old been developer 30 years. Last 2 years in Linux and Windows in parallel. Haven’t found yet any particular case where Linux has something that Windows doesn’t.

  3. My mileage differed. I recently built a powerhouse gaming computer for VR thinking I could also use the computer for web dev (at least that’s the lie I told myself). At the end of the day, there were just too many tooling issues I kept running into. I found myself with a super fast computer that was less productive because I was always trying to figure out how to fix something or get a Node package to work. I want to say I gave it an honest chance, but who knows. Recently Git Tower just released a Windows Beta version, and obviously bash is coming to Windows. Maybe in a year or so I’ll try again.

  4. Yes and php, postgres, redis, elasticsearch, imagemagick, ffmpeg, curl, nodejs and so on are available natively for windows. So for php development there are no differences. And you can use native docker to test your code on linux with almost native performances.


Please enter your comment!
Please enter your name here