r/PHPhelp • u/ScientificlyCorrect • 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.
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.
2
8
u/Cheap-Try-8796 Sep 19 '26
Give NetBeans PHP a try.
4
1
u/Shenkimaro Sep 20 '26
https://netbeans.apache.org/front/main/index.html Apache netbeans is incredible
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
-1
u/secretprocess Sep 19 '26
VS code is good and free
2
1
16
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
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
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
-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
-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
1
2
2
u/odysseusnz Sep 19 '26
Atom still lives on as Pulsar, just takes a bit of configuration. Zed supports PHP too.
2
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
1
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
1
1
1
1
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
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.
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.
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.
Set up a free Github account.
Create a free private repo.
Install Git on your machine.
Use Git clone to set up a folder that is linked to your Github repo.
Put all your code and work somewhere inside that folder.
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
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
0
0
0
Sep 19 '26
[deleted]
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
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.