The answer is definitely simple: use Docker 😃 Benefits I get from using PHP like this:
- No need to bother with setting up a local environment, switching PHP versions, installing additional libraries and resolving conflicts
- One text file with command line aliases is enough for any version of PHP to work on any computer. And from here
- Ease of transferring data between machines
- You can safely demolish the system on your main computer, restoring work with PHP will be as simple as
This article is about parsing the use of docker in one specific scenario, so if you are already familiar with this technology, you can safely skip it. The rest of you are welcome to the further reading.