r/PHP • • Mar 29 '24

Is effective PHP development is possible without PHPStorm/Idea?

Just a simple question.

Is effective PHP development is possible without PHPStorm/Idea?

And effective, I mean full autocomplete, template language support, refactor, a lot of inspections, development on the remote host/docker etc.

And if any acceptable alternative is even exist (VS / VS Code maybe), then what about extensibility of it.

P.S. (added) I use PHPStorm for the last 10 year minimum. Tried other editors sometimes but it was incomparable to phpstorm. But maybe now something is changed and some new player appeared on the market

0 Upvotes

96 comments sorted by

18

u/zmitic Mar 29 '24

You can move from point A to point B via 1986 Yugo, or brand new Mercedes. If you had a choice, you would have picked the latter right?

Here, the Mercedes is PHPStorm and everything else is Yugo. The autocomplete is crazy, and PHPStorm even understands generics and wild cards like non-empty-string. The cost of it is just too low to worry about, I think it is about 50-80 euros per year.

-35

u/Yoskaldyr Mar 29 '24

Did I wrote about money?

A few days ago I thought about to buy Idea Ultimate license in addition to my current PHPStorm license (I wanted it for easy idea plugin developing for phpstorm)

But how JB staff communicates with own customers stopped me to do this :) So I just will use PHPStorm with small scripting in Live Plugin (don't see any sense to do any full plugin now)

-26

u/Yoskaldyr Mar 29 '24 edited Mar 29 '24

Also after communicating with JB staff and reading a lot of posts on their forum and bug tracker I understand why so many frontend js/ts developers prefer VS products over Idea. If you need anything for your IDE you can develop it using rich extension API with friendly and helpful community.

24

u/__kkk1337__ Mar 29 '24

Don’t waste community time if you already have chosen

1

u/Yoskaldyr Mar 30 '24

I didn't choose yet. I'm still looking for alternative.

But this thread is helped me to understand, that phpstorm is still the best for php, but other tools improved a lot also.

In some projects (with a lot of frontend and custom web components with only api php backend as example) VS products can be better. But for almost php projects with php templating phpstorm wins

75

u/cursingcucumber Mar 29 '24

Having used Sublime, Atom, Eclipse PDT with various LSPs, practically rebelling against PhpStorm... I must say that PhpStorm is the best investment I have made. It is so much easier to work with and it paid for itself in weeks.

0

u/colshrapnel Mar 30 '24

Hijacking this comment to ask, why the question is so much downvoted? I mean, why most people who upvoted this comment, also downvoted the question? I honestly don't get it. ELI5?

5

u/xegoba7006 Mar 30 '24

Probably because this question has been asked a thousand times and the answer is always the same.

2

u/Yoskaldyr Mar 30 '24

All tools evolve during time. Last years php LSP servers are improved a lot. a new realizations are appeared (paid and free). Alternatives to phpstorm almost always depends on LSP. So proper php support depends on LSP.

1

u/xegoba7006 Mar 30 '24

While those tools improve, phpstorm also improves. The answer remains the same.

Also, when I said a thousand times, that was probably just about the last 6 months. Just search for it.

0

u/[deleted] Mar 30 '24

[deleted]

0

u/Yoskaldyr Mar 30 '24

I specially added to the post why I asked this question.

All tools evolve during time. And sticking to the one tool without look around time to time for alternative is counterproductive.

1

u/HappyDriver1590 Apr 01 '24

I don't believe it is. The tool you use is not as important as how good you can use it. I have seen many use PS without exploiting even 5% of it possibilities. Stick with the tool you are comfortable with and learn to master it perfectly is way more productive than tool hopping.

1

u/Yoskaldyr Apr 01 '24

I use most of the non vendor specific features of phpstorm (a lot of custom inspections, language injection). And I have to create a lot of small live-plugins for the LivePlugin for development productivity. Only because of huge and legacy codebase :(

P.S. New remote development feature is the best! Everything inside WSL or virtual machine/remote host with host system clean from any development tools/apps

2

u/NecessaryMention7089 Mar 31 '24

If your employer will pay for PHPStorm, use it. Otherwise get VS Code + extensions, and tell them you'd be more productive with PHPStorm.

1

u/Yoskaldyr Mar 31 '24

I already have a personal license, so money does not an issue.

26

u/ryantxr Mar 29 '24

Yes. No one on my team uses phpstorm. We all use vs code. No problem.

4

u/weogrim1 Mar 30 '24

Try PhpStorm, you will see the difference ;)

2

u/ryantxr Mar 30 '24

I have. I think it’s great.

10

u/dabenu Mar 29 '24

i've recently been using VS Code a bit for a different language, and it's pretty usable but nowhere comparable to the performance and usability of PHPStorm. Its absolutely great for hobby work, but I'd feel handicapped if it was all I could use for 8 hours a day professional development.

Having said that, a colleague of mine has picked up neovim and spend a lot of time customising it entirely to his needs, and created a pretty effective PHP IDE out of it. I think his config would be my 2nd choice after PHPStorm too. And although it's been a lot of effort for him despite already being familiar with vim etc, he's not the tiniest bit less effective with it than any other colleague using phpstorm. So it is definitely possible.

1

u/MattBD Mar 29 '24

I'm of the opinion that a lot of features that IDE's include are in principle better handled by external tools anyway. Two cases in point, static analysis checks and enforcing code style.

Someone I used to work with used PHPStorm and just turned off all the code quality stuff, with the result that their code was truly atrocious. Having, say, Psalm and Codesniffer set up on the project would have meant checks could run in continuous integration, so stuff like that would be caught regardless.

I also agree with the creator of Psalm that using attributes for static analysis is a bad idea, so even if I were using PHPStorm I'd prefer to use Psalm or PHPStan's annotations for the same purpose.

1

u/Yoskaldyr Mar 29 '24

Added P.S. in the first post

4

u/casualPlayerThink Mar 29 '24

Short answer: yes, it is possible

Long answer: it depends

I even met people who use VIM with macros and plugins, for PHP.

You can be productive, but a good (and real) IDE makes the difference. PHPStorm is just that far ahead. Its like photoshop. You can use gimp, but it is nowhere near of it. Not accidentally used and lowed by the entire community.

For free alternatives, always good thing to have Sublime, VSCode, nano and vim. I think Sublime is far the best from them, because it does not pretend its real nature, but does provide exactly what it promises.

4

u/BlueScreenJunky Mar 30 '24

Yes.

PhpStorm is the best by far, but it's totally possible to be efficient with VScode or Sublime Text.

7

u/WarriorVX Mar 29 '24

Our team uses Apache NetBeans IDE for PHP development and no issues at all

4

u/colshrapnel Mar 30 '24

Well, it is not about issues. It's about productivity. I haven't used NetBeans for more than ten years, so I am unaware of its current features. Does it do SQL schema autocomplete in the PHP code? Does it do static analysis on the fly, highlighting type errors, unreachable code, inconsistent declarations and stuff? Does it allow huge refactoring in one click (such as renaming classes or methods)? Does it have an SQL client that surpasses any other GUI not to mention ignominious phpmyadmin?

1

u/k0d3r1s Mar 29 '24

PhpStorm offers early access versions for free

3

u/Yoskaldyr Mar 29 '24

but these free versions have a limited license time. Also sometimes between major versions EAP releases are not available.

Also I already have storm license.

6

u/mbriedis Mar 29 '24

Depends on the project size.

The problem with this topic is, that people who code in something else will say it's fine, you can just slap a plugin and it works, but those who code in phpstorm, will say that it's a must. The issue with former is that people just don't know what they're missing out. Same people will say that var_dump is better than xdebug.

6

u/alinaresg Mar 29 '24

Neovim with PHP Stan, phpcs and phpactor is awesome. phpactor even has a Symfony plugin to recognize the container services, which I use for Drupal development.

Sublime works very well also with the same tools.

2

u/Useful_Difficulty115 Mar 30 '24

Phpactor was a game changer for me. Almost same setup, never been so productive.

2

u/MattBD Apr 01 '24

Damn, will have to look into that Symfony plugin. I just started working with Drupal recently and already use PHPActor so that will be really useful to me.

1

u/inodb2000 Mar 30 '24

Mind sharing your setup ?

2

u/alinaresg Mar 30 '24

Sure. This is how I configured Sublime Text. In neovim you can copy the phpactor configs, since it integrates phpcs, phpcbf and phpstan. https://write.as/bic79ky4gtxk9pv3.md

5

u/ParsnipNo5349 Mar 29 '24

I have phpstorm but also I use vs code like 50% of time . For remote development vs code is more efficient

1

u/homer__simpsons Mar 29 '24

If you do not want to invest in PHPStorm (which is a really great product for PHP development) you can try Fleet (https://www.jetbrains.com/fleet/) which is free for now and is pretty okay for PHP.

0

u/Yoskaldyr Mar 29 '24

this is the same as PHPStorm but worse for my needs (extension api is too unstable and undocumented)

4

u/dschledermann Mar 29 '24

Most code editors can do the important tasks if you have a proper LSP. I used PHPstorm for a couple of years, but I feel like it's too slow and bulky. I switched (back) to Emacs about a year ago, and while it doesn't have exactly the same set of features, it's an overall win.

14

u/Sheerpython Mar 29 '24

Vscode can do the same things as phpstorm in my experience.

Also remote host stuff and managing docker containers. Heck even databases.

You just have to get the right plugins.

16

u/skcortex Mar 29 '24

Vscode even with all the best plugins is not an alternative to phpstorm. Refactoring or any db edits is not pleasant nor practical. Having used both (even paid version of Intelephense in vscode-btw worth the few bucks) I have to admit that jetbrains is the best when it comes to IDEs (I hate java IDEs btw).

2

u/Sheerpython Mar 29 '24

Yeah i get your point. In my experience it has been exactly the other way around.

I started off using jetbrains as editor but when using it in older projects that have lets just say... not optimal code... jetbrains was always trying to be somewhat to smart I guess. It started giving errors about every single thing that was simply just working.

Maybe nowadays things have changed, but I have been on VSC ever since and with the giant plugin store it really does work great for my use case. Also VSC is not only for my PHP but all the other languages that i play with, including docker containers and easily testing them withing in the editor.

I am guessing that frameworks like laravel work like a dream in phpstorm.

At the and of the day the editor that you pick is 100% personal preference. I have met people that seriously use notepad++ and they swear by it.

2

u/luigijerk Mar 29 '24

I have used sublime professionally for the past 7 years after starting my career with phpstorm. I much prefer the lighter weight as phpstorm sometimes lagged which irritated me.

That being said, sublime has auto complete and formatting, but it doesn't auto refactor or anything fancy. I like it because it forces me to really learn the framework I'm using, often crawling through the core code.

Recently sublime started feeling heavy on larger projects and I've been trying vs code. Just use the tool you enjoy most. Proficiency of the tool is what matters. Don't jump around too much and get used to your key bindings.

0

u/doterobcn Mar 29 '24

Sublime is an editor not an IDE, different things.

2

u/luigijerk Mar 30 '24

Correct. It's viable to be efficient without an IDE.

2

u/[deleted] Mar 29 '24

i’ve tried them all and most even vscode require so many unstable plugins to accomplish what phpstorm offers. i always ended up going back to phpstorm after frustration from the others

2

u/kokokolia-rus Mar 29 '24

Yes, and that's how I work. I was using Notepad++ for years and then moved to Cursor. It's VSCode with AI integrations. After adjusting a few settings it works all good. Worth trying imho.

I honestly didn't like PHPStorm. So many things that could be done simple are unnecessary complicated, some of the features weren't working at all (no support for ftpes:// protocol for servers that run not in the passive mode? Really? That took me a day to debug & solve), so many annoyances are enabled by default, etc.

Oh and you also can try Neovim, it seemed to be just fine but I didn't use it for long because I quickly found out about Cursor.

2

u/eugeniox Mar 30 '24

I still prefer to code with basic editors over a complete IDE, I use BBEdit and VSC. To me, responsiveness and lightweight are very important, I feel I am less distracted and more focused on the code I am writing.

2

u/np25071984 Mar 30 '24

Recently I interviewed a man who uses vim. I can say I know ~20% of it (clipboard, tabs, go to definition, navigating around and other basics) but he uses way more features and extensions.

I don't think he is missing PHPStorm. Also, my company provides the license for PHPStorm but I prefer VSCode instead. I don't think anybody from us is a low performer because of our habits...

2

u/[deleted] Mar 31 '24

Yes, of course. PHP Storm is the best, true, but as a senior you are not more productive with it. VIm/Neovim Could be better, but need time to configure many things. VSCode is completely OK and could be configured quickly.

bmewburn.vscode-intelephense-client
MehediDracula.php-namespace-resolver
calebporzio.better-phpunit
xdebug.php-debug
aspirantzhang.php-enhanced-snippets
MehediDracula.php-namespace-resolver
mgmcdermott.vscode-language-babel
dbaeumer.vscode-eslint
donjayamanne.githistory
ms-azuretools.vscode-docker
mikestead.dotenv
EditorConfig.EditorConfig
Atishay-Jain.All-Autocomplete
Gruntfuggly.todo-tree
sleistner.vscode-fileutils
patbenatar.advanced-new-file
zhuangtongfa.material-theme
Codeium.codeium
vscodevim.vim

Just pay for Intelephense license once and forever (You really want "rename" feature working). `php-enhanced-snippets` is a key extension also. Many things that people are impressed with in PHP Storm can be replaced with snippets.

If you really need a guide or you are working on critical system within a team you could use `swordev.phpstan` and share same config with the team (phpstan.neon file). So you are not going to miss anything from PHP Storm to be honest. DB manager and Git GUI could be replaced, but as a senior, you don't even need the last one and BD managers like DBeaver are enough.

If you don't know what are you doing, you will not be productive without an fine tuned out of the box tool like PHP Storm. But that wasn't the question.

2

u/HappyDriver1590 Apr 01 '24

Everything is possible. In the early days i used notepad++ and it worked like a charm. But once you get introduced to IDE's, the world changes. Productivity & code quality just improve so much there is no way back. I prefer PHPStorm, but used Eclipse before, even Dreamweaver lol. The thing is, PS and VS are the best out there, by far, so why not? Just make's it easyer.

2

u/AntarianWorld Feb 15 '25

VS code will not show you even the basic interface implementations and usages. I have tried to set VSCode and it may be good for beginner to medium level PHP dev. But if you want some "sense" plugin to track inheritance, usages and properly autocomplete you will be on more spending monthly to different plugin makers then to pay for PHPStorm license.
With any medium sized project, you will be just using search contantly and hoping nothing breaks. Also PHP projects rarely have good test coverage.
PHPStorm can scan for almost anything, if you know how to set it up. Yes, sometimes it needs help from you to putting some annotations here and there, but then it lights up like light house showing unused or non-existend methods in code.
You may also end up with using VScode as support for HTML and CSS, it is better if you need handle Tailwind CSS.

PS: I have no affiliation with PHPStorm, but for any senior PHP dev, there is no other comparable tool now.

3

u/benelori Mar 29 '24

I have used Neovim with various language servers and it's possible to be as effective as with PHPStorm

The language server is the same as with VS Code 

However, I have to say that I needed to change my workflow a bit, because the language servers are not as good as what Phpstorm has

So for large projects I still use Phpstorm, but for smaller ones Neovim is just as good

3

u/skcortex Mar 29 '24

I also use neovim for everything except serious work on big php projects. The size it’s not an issue but phpstorm understands a shitload more about the project than any php lsp server can.

1

u/csakegyszer Mar 29 '24

How big is that large project? There are some bigger (imo) project i work on and never had performance or other issue with my neovim setup. Even they contains html, css, js as well.

3

u/benelori Mar 29 '24

I don't have the code to give you lines of code but it's a project that has been going on for 6 years

My problems were the following:

Larger files were a problem for Phpactor, so diagnostics only worked on save. And sometimes it had issues when searching for references

I also had issues with setup of feature files with and autocompletion for codeception. 

Some of the Symfony specific completions that are available in phpstorm with the symfony plugin, are missing from the LSPs. 

Since I've started using neovim, I've used it on the project 80% of the time, so it's not the end of the world, but phpstorm still has way more things out of the box

1

u/csakegyszer Mar 30 '24

Ah, i use Intelephense as LSP. I tried phpactor but it was slower.

3

u/benelori Mar 30 '24

I used Intelephense as well, but it wasn't as powerful. I chose phpactor, because of the phpstan integration and symfony related things

2

u/kammysmb Mar 29 '24

VSCode with plugins or NVim/Vim with plugins is nice, just requires some more manual set-up to make it all work nicely with each other, which you get out of the box with the jetbrains stuff

2

u/WolverineKindly839 Mar 29 '24

Vscode + Intelliphense work as a charm

0

u/jonromeu Mar 30 '24

who does not agree with op, just got downvoted. this posts about phpstorn will kill this sub

2

u/fatalexe Mar 29 '24

If you spend time to get good at it and setup plugins VIM can be more effective than an IDE.

https://laracasts.com/series/vim-mastery

1

u/SurgioClemente Mar 29 '24

How can it be more effective?

-1

u/fatalexe Mar 29 '24

Not needing to use a mouse. VIM’s text manipulation commands are very powerful and can allow you to make changes for large blocks of code rapidly without having to click around. The people I know that use VIM as their primary development environment are quite scary with how productive they can be.

2

u/SurgioClemente Mar 29 '24

But you don’t need a mouse in a good IDE either

1

u/MattBD Mar 29 '24

The key bindings are inferior. Vi style key bindings, when implemented properly (and most editors and IDE's vi bindings are utter crap) are basically a whole powerful language for interacting with text. Most other editors have chord style key bindings which are more cumbersome and more prone to causing problems exacerbating long term problems like RSI than a modal editor.

2

u/SurgioClemente Mar 30 '24

You should try IdeaVim in IntelliJ. I can’t speak to vscode but I’d be shocked if it doesn’t exist as well

1

u/MattBD Mar 30 '24

It isn't good enough for my needs. I have very specific needs due to the nature of my RSI. The vi bindings in VSCode and evil mode in Emacs come closest, but still aren't quite there.

0

u/fatalexe Mar 29 '24

Can you do that with less than 128MB of RAM directly on the smallest VM instance available?

4

u/skcortex Mar 29 '24

You can’t use neovim with php-cs-fixer,intelephense or phactor with 128MB. Also vim motions are usable basically in every editor/ide. I cannot work without them.

2

u/SurgioClemente Mar 30 '24

As it is no longer 2003 I never would have the need.

But yes, you can do that with IDEs. There is no reason to run an editor directly on the box. If you can ssh or ftp in, you can remote dev.

Also in addition to being bad practice by editing on the server you also don’t want all the dev dependencies or tools needed on the server as best security practice.

1

u/iamdadmin Mar 29 '24

I’ve found vs code to do all you’ve asked for and with the Codeium extension which is currently free the autocomplete / suggestions / code generation is very powerful. Just ensure you have the Linting and php language support extensions too. Is it AS good as a language-tailored ide? Maybe, maybe not. But I can do php, laravel extension, node extensions and do full stack in a single IDE which has its own benefits.

1

u/who_am_i_to_say_so Mar 31 '24

How is this even a question? Of course it’s possible.

I use VSCode with Copilot, great combo, and half the price of PHPstorm.

1

u/dmfreelance Mar 29 '24

Is there really such a thing as effective PHP development without vim? I don't think so. Clearly it's the best development environment out there, because I say so.

1

u/itemluminouswadison Mar 30 '24

of course, but why would you want to. phpstorm is fuckin bae

0

u/cursingcucumber Mar 29 '24

Having used Sublime, Atom, Eclipse PDT with various LSPs, practically rebelling against PhpStorm... I must say that PhpStorm is the best investment I have made. It is so much easier to work with and it paid for itself in weeks.

0

u/tjrchampion Mar 29 '24

Yes. 100%.

0

u/AcidShAwk Mar 29 '24

I've been using eclipse PDT for over a decade.

1

u/mbriedis Mar 29 '24

Oh lordy

1

u/SurgioClemente Mar 29 '24

God have mercy on your soul

-1

u/skcortex Mar 29 '24

So how’s the php8 support working for you?😅

1

u/AcidShAwk Mar 29 '24

Just fine?

0

u/doterobcn Mar 29 '24

You could always try Netbeans

0

u/MattBD Mar 29 '24 edited Mar 29 '24

I use Neovim and I do fine. There's stuff I use tools like Psalm and Codesniffer for that theoretically PHPStorm can also do, but having them integrated into the project means I can run those in continuous integration too. Setting them up at project level rather than in an IDE also means you can be certain people actually use them. I've known people who use PHPStorm or similar tools and just turn all that off, winding up producing really abominable code.

Of the features OP mentions, I have all the ones I'm interested in having. Using PHPStorm isn't an option for me anyway due to the specific nature of my RSI.

1

u/metal_opera Mar 29 '24 edited Mar 29 '24

There's stuff I use tools like Psalm and Codesniffer for that theoretically PHPStorm can also do

There's nothing theoretical about it. PhpStorm has built-in support for both.

0

u/MattBD Mar 29 '24

Which is irrelevant to me as my RSI means I can't use PHPStorm.

0

u/metal_opera Mar 29 '24 edited Mar 29 '24

Which is irrelevant to me as my RSI means I can't use PHPStorm.

I'm sorry to hear that?

That doesn't mean PhpStorm only has theoretical support for those features.

You don't know the software. Stick to what you know and don't just throw around verifiably false information.

-1

u/jonromeu Mar 30 '24

the sub does not have mod?

0

u/[deleted] Mar 29 '24

[deleted]

1

u/compubomb Apr 02 '24

I used to also use netbeans, but it started to crash on me in larger projects.