For PHP development, I preferred to code in the host and run in the guest OS. It helps to keep the host clean and stable. Because PHP and APEX[1] are both required, I switch from NetBeans to Visual Studio Code.
- Install and Configure Visual Studio Code and PHP Extensions
- Import and Configure TurnKey LAMP Stack