Are you familliar with PHPStorm?
I wanted to learn PHP and recently played with the soft.
I read that it is possible to work localy and deploy changing to production enviroment. Both locak and hosting enviroment can be pre-configured, it has built in console, regular commands can be saved.
Have you ever used it?