I had similar issue. Solution for me (as windows user) was to put everything in synced directory (tresorit in my case)
i have one app directory with:
so envrionent and tools are same and i can have it same on both computers.
and yep, docker installed, so i do not have even PHP in my machine :)
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.