r/PHPhelp • • Sep 19 '26

Any free code editors/IDE for PHP on linux?

Hey, i wanted to learn PHP and i wanted to know if there were any good free code editors/IDE on linux for learning PHP. Thanks in advance.

21 Upvotes

78 comments sorted by

10

u/AlkaKr Sep 19 '26

2

u/txmail Sep 19 '26

I use this almost exclusively now -- but showing the screen shot on start of the last session is the dumbest thing I have seen in a long time.

1

u/lucasjkr Sep 20 '26

Wasn’t there a free version without AI? Or is that just pyCharm community? It’s been so long since ei used phpstorm honestly.

1

u/txmail Sep 20 '26

Ehh, I am not sure any more. They took it off of the hobby page and I know ti was on there at some point because before I paid for my Ultimate I used it for "hobby" use. I know the EAP' used to also just work for 30 days at a time.

1

u/basan4ik Sep 24 '26

PhpStorm Light is free but it's in beta.

20

u/snoogazi Sep 19 '26

VSCode. There's also a version of it without all the Microsoft bloat called VSCodium, but I haven't used it yet. Also, if you are using Linux Mint, it's already in the software manager by default.

3

u/equilni Sep 19 '26

There's also a version of it without all the Microsoft bloat called VSCodium, but I haven't used it yet

I use it and it's fine.

OP didn't mention what distro they use, so here's what they note for installations - https://vscodium.com/#install

For u/ScientificlyCorrect if you get either version, make sure you install the PHP Intelephense extension in the marketplace. Also, View->Problems will show any issues with the code, then View->Terminal helps keep you in the IDE to run what you need.

1

u/snoogazi Sep 19 '26

I just installed VSCodium and my only (very minor) complaint is not being able to sync all my settings from GitHub like I’m used to. That said I am glad I installed it.

1

u/AshleyJSheridan Sep 30 '26

VSCode is a great code editor, but it's not an IDE, and it's missing core IDE features without a ton of plugins.

-5

u/colshrapnel Sep 19 '26 edited Sep 19 '26

That's a fair answer for the question title alone, but if you take some context into consideration, for someone who "wanted to learn PHP" (but for some reason went asking silly questions on Reddit instead) having an IDE is absolutely unnecessary. IDEs are for projects, not for learning. In a way, choosing an ide for the purpose is double wrong:

  • first, it doesn't help: none of its features are useful for writing hello world or "while row taken from db fetch, echo row name" kind of code

  • second, it's inconvenient for working with separate files. I remember my own frustration when trying an ide first, when it kept asking me about whatever "project", refusing to work with my familiar files. And all those controls and features that get in the way until you learn their purpose (again, mostly in the big projects)

This particular question is staged, though I cannot tell the purpose. It could be just stupid repost-botting/karma-whoring, or may be planting for specific answer, or something of the sort.

1

u/schorsch3000 Sep 19 '26

Yeah, it is an inherent feature of every IDE that it cant be used as an file editor without setting up a project, exept most ides actually just have an editor mode. Just open a file and you are fine.

Also surely an ide will not help you learn stuff, its totally unhelpfull when your ide points out errorr ur gives you documentation when ctrl-clicking a function, you'll learn nothing from that!

2

u/colshrapnel Sep 19 '26

When you control click a function it gives you a stub when you need a man entry, and often comments too. And over-nursing is bad for learning. You have to experience the error, feel the consequences - not just being told, "that's bad, don't do it". But well, it could be an endless argument so let's agree to disagree. Cheers.

1

u/Questioning-Zyxxel Sep 19 '26

VSCode with a suitable PHP addon will help a lot.

It scans the code. Flags syntax errors. Can warn about old constructs that should no longer be used.

Do you need to set up a project? No! Just drag a file with php extension and drop on the IDE and it will happily edit the file, while knowing it's expected to analyze as PHP source code.

For all my small projects, I just have one single PHP file per task I want to solve - and I quite often use PHP to write batch files i.e. command line tools. But no extra work configuring the IDE.

6

u/Fit_Tailor_6796 Sep 19 '26

If you are looking for a real IDE, not a code editor, look at Eclipse PHP Development Tools. Open source and fully functional.

https://eclipse.dev/pdt/

2

u/Manachi Sep 20 '26

It is very powerful. Netbeans too

8

u/Cheap-Try-8796 Sep 19 '26

Give NetBeans PHP a try.

4

u/Dikvin Sep 19 '26

NetBeans is still good, Eclipse too.

11

u/ggnndd12 Sep 19 '26

There are free IDEs and good IDEs. There are no free good IDEs. I'd just get PhpStorm and bite the $10/mo IIRC.

4

u/Fluent_Press2050 Sep 19 '26

Also JetBrains discounts 40% on renewals once you’ve had 2 years or whatever so it’s really good to keep it active and get the updates. They also support/fund PHP development which is a plus. 

2

u/Manachi Sep 20 '26

Netbeans is free and good.

1

u/ggnndd12 Sep 20 '26

I tried netbeans once. Not the first word that comes to mind.

1

u/AshleyJSheridan Sep 30 '26

Skill issue.

-1

u/secretprocess Sep 19 '26

VS code is good and free

2

u/Manachi Sep 20 '26

Not an IDE, not good and not free in that your data and IP is the price

1

u/AshleyJSheridan Sep 30 '26

Free, but not an IDE. Missing core features that make it a good IDE.

16

u/[deleted] Sep 19 '26

[removed] — view removed comment

5

u/txmail Sep 19 '26

I want to be able to love VS Code... but got damn does it infuriate me every time I start to try and use it for real work. It is something about how the editor moves when navigating and how the intellisense never seems to work right.

1

u/secretprocess Sep 19 '26

I've been making a great living for years using vs code. I think it work just fine for someone learning PHP. Y'all out here telling them to subscribe to an IDE, ridiculous.

1

u/[deleted] Sep 20 '26

[removed] — view removed comment

1

u/secretprocess Sep 20 '26

If OP was getting PHPStorm from their workplace they wouldn't be here asking for recs for free editors.

6

u/txmail Sep 19 '26

PHP Storm by JetBrains is probably the industry standard and free for a ton of cases including what you are wanting to use it for.

https://www.jetbrains.com/non-commercial/#choose-your-jetbrains-ide

Aside from that do not sleep on Eclipse Stuido with the PHP pack

0

u/Ok-Conversation278 Sep 19 '26

PHP Storm è a pagamento, ma è il migliore secondo me. Eclipse è una chiavica, non mi piace

3

u/txmail Sep 19 '26

Have you tried the latest Eclipse PDP? It is kind of funny Eclipse was probably my first IDE and it took me a long, long time to move away from it (to PHP Storm which was almost modeled after Eclipse PDP). When PHP storm started to get all AI crazy I went and tried the latest version and I was pretty impressed and still keep it installed as a fall back.

4

u/[deleted] Sep 19 '26

[removed] — view removed comment

2

u/GreenPlatypus23 Sep 19 '26

Wasn't it free if you used the Early Access version? For 30 days or something...

1

u/basan4ik Sep 24 '26

PhpStorm Light is free.

-1

u/magicmulder Sep 19 '26

OP says they want to learn so that is covered. Once they start making money with it, they can afford the license.

2

u/danabrey Sep 19 '26

It doesn't count. To get a student license you need to be at an accredited learning establishment for longer than one year.

1

u/magicmulder Sep 19 '26

Yeah I missed that the exemptions don't cover PhpStorm, my bad.

-1

u/txmail Sep 19 '26

It literally says at the top of the page I linked - "Full‑featured professional IDEs. Free for non‑commercial use.".

1

u/OpeningCredit Sep 19 '26

And where on that page it mentions PhpStorm exactly?

1

u/danabrey Sep 19 '26

Phpstorm is not one of those IDEs

2

u/colshrapnel Sep 19 '26

Something tells me it's a repost bot.

2

u/odysseusnz Sep 19 '26

Atom still lives on as Pulsar, just takes a bit of configuration. Zed supports PHP too.

2

u/wiizzl Sep 19 '26

PHPStorm is the only good choice for PHP atm. Dont even think about VSCode

2

u/coryamarsh Sep 23 '26

vscode with intellephense is pretty good.

a well configured neovim setup is the only way to fly if you are editing text all day

1

u/AshleyJSheridan Sep 30 '26

VSCode isn't an IDE, but it's a decent code editor.

1

u/coryamarsh Oct 01 '26

hahaha

1

u/AshleyJSheridan Oct 01 '26

You don't think it's a decent code editor? You're entitled to your opinion I guess...

1

u/cdtoad Sep 19 '26

I use VS Code and... vi

1

u/kushal_saha Sep 19 '26

Try Zed or Vscode with Phantom LSP.

1

u/mike_a_oc Sep 19 '26

I have a potato laptop that I've been using to learn rust and Odin. I installed Zed and I really like it. Really lean and there are LSPs for a lot of languages including PHP. It's not as feature rich as Jetbrains but it still has everything you need

1

u/AlFender74 Sep 19 '26

Pulsar Edit. Free and Good especially for PHP.

1

u/stuardo_str Sep 19 '26

Which one do you use in other OS?

1

u/kilkil Sep 20 '26

I use neovim. bit of a learning curve but the motions are very nice

1

u/kilkil Sep 20 '26

honestly you can probably use VS Code or Sublime

1

u/obstreperous_troll Sep 20 '26

I'll echo the suggestions to use VSCode and also agree that it's kind of mediocre as an IDE. But for learning purposes, it and the free version of Intelephense will do just fine. There are a lot of other free PHP plugins you can also try, but they tend to be more fiddly (php-lsp in particular looks promising, but its indexer constantly freezes on my projects). So I'd start with Intelephense and start looking around from there.

1

u/rmSteil Sep 22 '26

My god, the comments are wild

0

u/HolyGonzo Sep 19 '26

If you're learning, my own recommendation is not to use an IDE or code editor just yet.

While learning, use Notepad or the most basic text editor in your environment.

  1. I've worked in a LOT of situations where I'm not able to use my preferred editor (UltraEdit). Sometimes I'm in a secure, controlled environment where the only tool available to me is Vim or similar. Other times it's not a restricted environment but it would take a long time to request and get the right tools installed, so using basic tools can get the job done right away.

  2. If you start with extra tools, they can become a crutch. Once you're comfortable without the extras, it's easier to really see what the other editors are truly bringing to the table. I've seen a couple people who thought they literally could not write PHP without an IDE because they thought the IDE was doing extra steps for them.

It's the same story with everything else. Want to learn how web serving works? Don't start with Docker or XAMPP - set up the components individually and then once you understand how things work together, THEN move onto the tools that make things easier.

So learn from the ground up - start with the basics before you rely too much on tools.

2

u/ScientificlyCorrect Sep 19 '26

Which basic editor should i use then? Netbeans? Eclipse? Notepadqq? (notepadqq is the linux version of notepad++) Kate?

1

u/ltdn Sep 19 '26

nvim: barebone, then strap an php lsp; as you familiar add as more plugins/tools until the configuration is right and it is yours.

1

u/ScientificlyCorrect Sep 19 '26

For me, terminal code editors are not for me. I may learn them later, but not now. I'm still beginning so...do you have any GUI ones as suggestions for linux?

1

u/HolyGonzo Sep 19 '26

Based on your comments I'm assuming you're on KDE not Gnome, so I would suggest Kate or notepadqq.

That said if you're looking to get into any kind of consulting work, I would also suggest getting comfortable with shell stuff, too.

Vim and Nano are both pretty standard choices for shell editors - Vim is more powerful but Nano is more user-friendly.

Occasionally you might be in a situation where there is just no way to use your local tools, and you might be forced to work through a shell and one of those two (I've never seen a Linux system that didn't have vi installed).

I would also make sure you're doing basic Git along the way. While you technically don't NEED Github or any upstream source, it's a good idea to just get into the rhythm.

  1. Set up a free Github account.

  2. Create a free private repo.

  3. Install Git on your machine.

  4. Use Git clone to set up a folder that is linked to your Github repo.

  5. Put all your code and work somewhere inside that folder.

  6. At the end of every day, do a Git add, Git commit, and Git push to send all your new and updated code to the GitHub repo.

You don't need to understand all the different pieces of Git just yet but doing this will get you comfortable with basic Git commands that you'll need later on AND it will give you a free and simple backup of your code while you develop, just in case something goes wrong.

1

u/ScientificlyCorrect Sep 19 '26

No, i use gnome 51 actually. But that doesn't matter. KDE apps run fine.

1

u/ScientificlyCorrect Sep 19 '26

also thanks for the suggestion!

1

u/OppieT Sep 20 '26

OP doesn’t even need a GitHub account, you can just do git local. Unless OP wants to code on other computers and share code.

1

u/HolyGonzo Sep 20 '26

That's why I said:

While you technically don't NEED Github or any upstream source, it's a good idea to just get into the rhythm.

And as I pointed out, GH also serves as a code backup.

1

u/equilni Sep 19 '26

gEdit is an option on Gnome

0

u/ThArNatoS Sep 19 '26

Zed is pretty good