Avatar of Harreni
Harreni
Flag for Saudi Arabia asked on

Best IDE for PHP starters

Hi Experts,

I have 2 questions:

1- What is the best IDE to start with for PHP web development that provides me with:
  • Controls to be drag and drop on the IDE interface instead of creating it from scratch.
  • Debugging breakpoints and show the a detailed error messages.
  • Ready made code snippet for use : like managing a connection with database and error handlers.

2- Can I develop a PHP code inside a Microsoft visual studio, if yes please tell what needed to be installed and detailed steps.


Thanks a lot.
Harreni
PHPApache Web ServerWeb DevelopmentEditors IDEs

Avatar of undefined
Last Comment
mlemos

8/22/2022 - Mon
Ray Paseur

PHPStorm is the best PHP editor and IDE.  You can get a free trial.

Most PHP developers use Linux (a "LAMP" stack), not Microsoft tools.  If you want to understand why, go to any PHP conference and try to find the Microsoft Visual Studio track.  Our community does not have much patience for complicated and expensive "solutions" that lock us into some kind of proprietary platform.

If you're new to PHP and want to get started, this article can help.
https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html
Dave Baldwin

While 'controls' like 'input' statements could be done with 'drag and drop', most of the code that I write in PHP is unique to the problem I have to solve.  Except for the most basic functions, there are no code samples or 'drag and drop' that would help me at all.
Ray Paseur

I agree with Dave Baldwin on this one (I usually do -- he's one of the most experienced members of our community).  But I would add one "outside the box" case you might want to consider.  Learn about Composer.  When you get beyond the basics of just thinking about a single PHP script and start thinking about application development, you will quickly find that other people have already written large parts of your application, and you just need a way to tap into their code sets.  That exists, and we all use it to add components to our software.
Your help has saved me hundreds of hours of internet surfing.
fblack61
Marco Gasi

My two cents about drag%drop: I think RAD development tecniques can't be used efficiently in web development because of the specific form webpages are designed. To build, for instance, a form, you can imagine it be easier to drag and drop single element on the page but each element needs to have attributes that are specific for each project depending on the specific css framework used, the specific layout and custom classes implemented for each input type and so on. The advantage to drag an element would be ridicolous since you have then to manually rearrange the form within layout markup specific to the css used in that project.
That said, I love Netbeans IDE. It has born as a Java IDE but it offers a great support to Php, HTML5, CSS3 and even for Cordova/Phonegap development. It is open source and totally free and... ok, I just love it :)
Carlos Ijalba

Very LIGHT and FAST, windows-based IDES from BluMentals Software:

Rapid PHP Editor       http://www.rapidphpeditor.com/
WeBuilder                   http://www.webuilderapp.com/

Heavier IDEs but professional-grade (knowing them will help you out when looking for a job):

Eclipse Neon               https://eclipse.org/
Netbeans IDE              https://netbeans.org/
Visual Studio Code     https://www.visualstudio.com/products/code-vs
ASKER CERTIFIED SOLUTION
Ovunc Tukenmez

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Dave Baldwin

I forgot to mention that I have many PHP 'pages' that do not have a visible display.  They process data and database info.  Some are accessed from the web and some from the desktop but without any 'controls' that can be seen.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Julian Hansen

I have tried many IDE's ultimately I always come back to Notepad++ and Sublime. Possibly goes back to the days before GUI IDE's when Brief by Underware and makefiles was how we built apps.
Harreni

ASKER
Thanks a lot every body, all of you give me a good explanation for my questions.
Ovunc Tukenmez

Thank you too Harreni!
I wish you huge success on your PHP coding journey :)
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
mlemos

There are many PHP IDE these days. Some are free but often developers prefer commercial ones.

As for Visual Studio there is an extension called PHP Tools that can make Visual Studio an IDE for PHP. There is a tutorial of PHP Tools for Visual Studio here. There is a free version that can work with the community edition of Visual Studio community edition.

You can also find a comparison of PHP IDEs here, so you can evaluate what suits you better.