PHPStorm on Windows machine to develop on "remote" Linux with Composer?

I've been pretty happily using PHPStorm 2.1 on my Windows machine with samba mounting of remote (but on the same LAN) fileshares of a development webserver. I can do debugging properly and all that....

However, I've been asked to add some functionality using "gocardless" (a direct debit service) and they seem to be suggesting that I use new-fangled stuff like Composer and PHP5.6. I suppose it really is time to move on from PHP5.3, but this is giving me an almighty headache!

Are there any videos or resources aimed at showing how this is done?

I can see videos on how to use composer locally, but I think straddling OSes and going remote makes things one hell of a lot more complicated. The error messages on PHPStorm10 (thought I'd give that a try) are generally not as helpful as on 2.1 - for example, when trying to add a Composer dependency, I get a message "empty path to php.exe" (even though I've set up a remote server with php). So if I humour it by giving a local php.exe, it then complains that php.ini doesn't exist (even though it does).
If I try setting up a remote interpreter, I get complaints of No path mappings being found, and the suggestion is to configure them at SFTP Deployment configurations (but I don't want SFTP - I'm connecting via a mount)...

I'm sure it's all easy once you know how, but finding the right video is very difficult as there are so many ways to skin a cat these days.

Help!

0
2 comments

Hi there,

1) At the moment PhpStorm supports Composer for local PHP only. Please watch this ticket (star/vote/comment) to get notified with updates: https://youtrack.jetbrains.com/issue/WI-23544

2)

So if I humour it by giving a local php.exe, it then complains that php.ini doesn't exist (even though it does).

No real clue. Seems to work just fine here on Windows 7 (got 5.4, 5.5 and 5.6 installed; all NTS x86).

Although it's possible that php throws some errors/warnings on startup -- this may cause problems with PhpStorm integration / validation.

Basically, IDE is trying to execute your php.exe and checks the phpinfo() output (or "php -i" -- I do not know exact details) to check the details (what debugger is installed; what php.ini is used etc)

3)

If I try setting up a remote interpreter, I get complaints of No path mappings being found, and the suggestion is to configure them at SFTP Deployment configurations (but I don't want SFTP - I'm connecting via a mount)...

Remote interpreter gets executed over SSH .. so you would need SFTP for this to work properly (especially for debugging/running scripts)

-----

Taking all into consideration (considering the amount of info and how well I understood your setup) the best would be to use Composer manually on your remote host via SSH (BTW -- PhpStorm has Remote Terminal) and possibly keep debugging using current approach.

0

Agreed!

In fact, I pushed back on the requirement to use Composer at all and we're not going to do it. I will certainly vote on that ticket to keep abreast of the situation. It looks like Composer is the future, and I probably won't bother upgrading PHPStorm until that feature is implemented.

Thanks very much for your input.

0

Please sign in to leave a comment.