News for hackers. Stuff that matters.
Re:My PHP Development Setup by xd on Thursday January 17, 2019 @06:09AM (#18929892)
I've struggled for years for a decent PHP IDE, I've used everything from nano, to vi to Eclipse, I even developed my own in PHP using wxwidgets (wxphp) which fell to the wayside when PHP7 came along and the support for wxwidgets was dropped. I used PHPStorm a couple of times but had various issues and finally I have settled on Atom[1] which in the almost 20years I've been developing in PHP must say is hands down the best IDE for PHP yet... and it's free.

[1] https://atom.io

Re:My PHP Development Setup by ehnto on Thursday January 17, 2019 @06:16AM (#18929928)
I swear by PHPStorm, it has everything I need in one spot, and a built in terminal window for everything else. Saves so much cognitive load on context switching. Instead of flicking through four different windows and losing my train of thought constantly, it's just the browser on one screen and an all in one tool in the other.

PHPStorm's XDebug integration is second to none, it has full MySQL integration, and it's autocomplete and click-through intelligence is incredibly smart.

I have tried atom, but I miss too many of PHPStorm's features. There is so much it can do, and so much intelligent functionality, but it all stays out of the way until you call upon it.

Re:My PHP Development Setup by furicane on Thursday January 17, 2019 @06:26AM (#18929966)
I second this.

Without going into what I've tried and yadda yadda yadda, white noise, my credentials and so on - PHPStorm id the IDE. No Atom / VSCode or whatever can't compare. You get ctrl+click go to definition, you get ssh terminal, you get XDebug integration, it plays with Vue/ES6/React, you get MySQL integration, Vagrant integration, extensions to get VIM bindings and so on. Next to proper keyboard, monitor and mouse - buying PHPStorm is hands down one best money spent when it comes to what I work with every day.

I'm NOT saying "you can't get X with Y editor which is free" - sure, I believe you can, but this thing completely satisfies my every requirement and I don't have to spend time looking for integration extension or whatever. It saved me a ton of time so far, it will do so in future - I approve it, however I don't think anyone's editor "sucks and you should go with PHPStorm". Everyone should go for what they think brings them the best experience / value.

Re:My PHP Development Setup by busterarm on Thursday January 17, 2019 @06:30AM (#18929987)
Third it.

I'm not even an IDE -- I'm a strict Vim user, but when I had to work in PHP I found the experience to be very nice. Especially integrating with the debugger.

JetBrains' stuff is top notch and I will buy their IDE for any language I work in, even if I don't use it very often.

Re:My PHP Development Setup by larzang on Thursday January 17, 2019 @07:55AM (#18930400)
Yeah, PHPStorm is a mediocre to terrible text editor but an amazing IDE. I used Sublime Text for many years prior and PHPStorm can't even come close in terms of ease of keyboard navigation, responsiveness, multi-file organization, etc BUT after 3 years of PHPStorm I won't use anything else.
Re:My PHP Development Setup by piotrkubisa on Thursday January 17, 2019 @11:45AM (#18932250)
> a built-in terminal window

I remember that time when I couldn't get it why there isn't built-in terminal in the SublimeText and then I found windows managers like `sway` or `awesome` and I started do not care about it.

> PHPStorm's XDebug integration is second to none, it has full MySQL integration, and it's autocomplete and click-through intelligence is incredibly smart.

Support for XDebug exists in all modern editors - Atom, Sublime, NetBeans, etc. etc. If you "waste" some time on customizing your editor auto-completion feature you might will get a really decent one (in aforementioned editors).

I must say PHPStorm had a superior look-for-file (think: Ctrl+P) feature which really gets annoying in other editors if you get used to it.

About the MySQL integration: I was really positively surprised having it in the IDE but I've stopped using it as soon as my colleague told me about the HeidiSQL [0]. For person who was using SQL Management Studio at university, HeidiSQL offered the same feel - fast, lean and simple to use but also it is free and installation in Linux (wine) or macOS does not take much time. It is probably the best application written in Pascal that I know about.

[0]: https://www.heidisql.com/

Re:My PHP Development Setup by ehnto on Thursday January 17, 2019 @11:06PM (#18936953)
> Support for XDebug exists in all modern editors - Atom, Sublime, NetBeans, etc. etc.

It does, but PHPStorm's is particularly competent. From rewinding the stack, having an in-context command line prompt to run code in, conditional debug points, current context auto-complete for the command line, it can even read cachegrind outputs. It's the level of competence they implement in all their features that take it from a "text editor preference" to a professional level tool.

> I must say PHPStorm had a superior look-for-file (think: Ctrl+P) feature

You can also "look everywhere" which looks at literally everything from the same text-box, so if I type "show line numbers" it searches through the settings panes and finds the "show line numbers" setting, and because it's a toggle, I can just hit enter on the search result and it toggles the setting. Also class definitions (PHP, Javscript and CSS definitions) are all fuzzy searchable. "SoClNa" will find the SomeClassName definition and also the "Some/Class/Name" folder and so on.

I know I'm gushing about it but I really could talk for ages about all the little things it does.

Re:My PHP Development Setup by thiscatis on Thursday January 17, 2019 @06:29AM (#18929980)
Honestly, PHPStorm and the Symfony plugin. I practically feel like I'm cheating my clients with how easy it's now.
Re:My PHP Development Setup by swalsh on Thursday January 17, 2019 @08:41AM (#18930658)
I used PHPStorem for a while, but lately VSCode has been giving it decent competition.
Re:My PHP Development Setup by wyclif on Friday January 18, 2019 @04:17AM (#18938067)
I also use VS Code. What would you say are the primary differences between VS Code and PHPStorm?
Re:My PHP Development Setup by piotrkubisa on Thursday January 17, 2019 @11:32AM (#18932118)
I haven't used PHP for quite a while but personally I was more satisfied with the SublimeText than Atom but the difference between those two was minimal and I even could say it was "matter of taste". I switched back to SublimeText, because I had been more satisfied with the auto-completion and snippets features in my setup and I couldn't find any plugins to Atom which will give me comparable feel. Today, I guess many add-ons for Sublime are outdated and/or not possible to work with, so Atom might a better choice.

Except PHPStorm I know many developers who got used to NetBeans IDE.

Re:My PHP Development Setup by euph0ria on Thursday January 17, 2019 @08:17AM (#18930522)
PHPStorm makes everything so easy.
Re:My PHP Development Setup by AdrianB1 on Thursday January 17, 2019 @09:13AM (#18930858)
While I fully agree that PHPStorm is a great IDE (most of the people in my team use it), I prefer Visual Studio Code for my work: first because it is free for commercial use, second because I also do a bit of C# from time to time and having a single environment is easier. Initial versions of VSCode were terrible, but now it is more than decent.
Re:My PHP Development Setup by h1d on Thursday January 17, 2019 @06:47AM (#18930052)
What are the problems of PhpStorm?

It won't make you dig around a dozen plugin to make it work in a decent way and even better than atom + plugins and what about $8/month?

Re:My PHP Development Setup by pjmlp on Thursday January 17, 2019 @09:39AM (#18931042)
As occasional PHP developer, Netbeans and Eclipse have been pretty ok for my little Websites.

What were your issues with them?