This article contains a list of text editors with features specific to the PHP scripting language.
Free editors[edit]
- Coda is perhaps one of the most loved web development and programming editor for Mac. It is famous for its ridiculously good looking interface, and smart powerful features. It allows you to edit local or remote files, manage projects, work on multiple files at once with easy switching between tabs.
- For PHP in particular, PHPEdit is the best, and I tried and worked in some of them including, Dreamweaver, Elipse, Emacs, Notepad, NetBeans, UltraEdit.
Editor | License | Latest Version | Platform | Autocompletion | File Browser | GUI builder | Internal Browser | Version Control | PHP Debugger | ||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Linux | macOS | Windows | Other | Local | FTP | SFTP | SSH | ||||||||
Aptana Studio | APL/ GPLv1 | 3.6.1 | Yes | Yes | Yes | JVM | Yes | ? | Yes | Yes | ? | With XDebug [1] | |||
Atom | MIT | 1.13.1 | Yes | Yes | Yes | FreeBSD[2] | Yes[3] | ? | No | Yes | ? | ||||
Bluefish | GPLv3 | 2.2.9 | Yes | Yes | Yes | FreeBSD[4] | Yes | ? | Yes | Yes | ? | ||||
Brackets | MIT | 1.8 | Yes | Yes | Yes | No | Yes | ? | No | Yes | ? | ||||
CodeLite | GPLv2 | 9.2 | Yes | Yes | Yes | FreeBSD[5] | Yes | ? | No | Yes | ? | ||||
Eclipse PDT | EPL | 7.0 | Yes | Yes | Yes | JVM | Yes | ? | Yes | Yes | Yes | With XDebug [6] | |||
Geany | GPLv2 | 1.29 | Yes | Yes | Yes | FreeBSD, NetBSD, OpenBSD[7] | Yes | ? | Yes | Yes | ? | ||||
gedit | GPLv3 | 3.22.2 | Yes[8] | Yes | Yes[8] | FreeBSD | Yes[9] | ? | Yes[9] | Yes | ? | With XDebug [10] | |||
GNU Emacs | GPLv3 | 27.1 | Yes | Yes | Yes | BSDs, OpenSolaris | Yes | dired (builtin) | tramp (builitin) | tramp (builtin) | tramp (builitin) | Yes | Yes | vc (builtin) | ? |
jEdit | GPLv2 | 5.5.0 | Yes | Yes | Yes | JVM | No | Yes | Yes[11] | Yes[12] | Yes[13] | No | Yes | ? | |
Kate | GPLv2 | 16.08.1 | Yes | Yes | Yes | FreeBSD | No | Yes | Yes | Yes | Yes | No | No | Yes | ? |
KWrite | GPLv2 | 16.08.1 | Yes | Yes | No | FreeBSD | No | ? | No | Yes | ? | ||||
KDevelop | GPLv2 | 5.0.3 | Yes | Partial[14] | Yes | FreeBSD[15] | Yes | ? | Yes | Yes | ? | ||||
Komodo Edit | MPL | 10.1.2 | Yes | Yes | Yes | ? | Yes | ? | Yes | Yes[16] | No[17] | ||||
NetBeans | CDDL/ GPLv2/ LGPLv2.1 | 12.2 (December 7, 2020; 43 days ago) [±][18] | Yes | Yes | Yes | JVM | Yes | Yes | Yes | Yes | Yes | Yes | Yes | Yes | With XDebug[19] |
Notepad++ | GPL | 7.2.2 | No[20] | No | Yes | No | Yes | No | No | No | No | No | No | Yes | With XDebug[21] |
SciTE | GPLv2 | 3.7.1 | Yes[22] | Yes | Yes | FreeBSD[23] | No | ? | No | Yes | ? | ||||
TextMate | GPLv1 | 1.5 | No | Yes | No | No | Yes | ? | No | Yes | ? | ||||
Vim | Vim License | 8.0 | Yes | Yes | Yes | Yes[24] | Yes | Yes | Yes | Yes | Yes | No | Yes | Yes | |
Visual Studio Code | MIT | 1.52.1 (December 16, 2020; 34 days ago) [±][25] | Yes | Yes | Yes | No | Yes[26] | ? | No | Yes | ? |
Taco HTML Edit is the premier HTML editor and PHP editor for the Mac. As an HTML editor, Taco HTML Edit empowers its users to rapidly create their own web sites. It is designed exclusively for Mac OS X and has many advanced features including spell checking, live browser previewing, PHP previewing, syntax checking, and much more.
Cross-platform[edit]
- Aptana Studio – Eclipse-based IDE, able to use PDT plugins, visual JS editor. Open-source, free project. (Community edition merged in).
- Atom – free and open-source[27] text editor with out-of-the-box PHP support.
- Bluefish – a multipurpose editor with PHP syntax support, in-line PHP documentation, etc. With GVfs, supports SFTP, FTP, WebDAV, and SMB.
- Brackets – free and open-source editor in HTML5/NodeJS by Adobe Team the best for integration frontend
- CodeLite – an open source, cross platform IDE for C/C++ and PHP. The built-in plugins supports SVN, SSH/SFTP access, Git database browsing and others.
- Eclipse – PHP Development Tools (PDT) and PHPEclipse projects. With additional plugins supports SVN, CVS, database modelling, SSH/FTP access, database navigation, Trac integration, and others.
- Editra – open source editor. Syntax highlighting and (partial) code completion for PHP + HTML and other IDE-like features like code browser etc.
- Emacs – advanced text editor. The nXhtml addon has special support for PHP (and other template languages). The major mode web-mode.el is designed for editing mixed HTML templates.
- Geany – syntax highlighting for HTML + PHP. Provides PHP function list.
- jEdit – free/open source editor. Supports SFTP and FTP.
- Komodo Edit – general purpose scripting language editor with support for PHP. Free version of the commercial ActiveState Komodo IDE.
- Netbeans – IDE with PHP support and integration with web standards. Supports SFTP and FTP. Full support for SVN and Git since 7.2 and powerful plugin support for added functionality.
- SciTE – PHP syntax highlighting, compiler integration, powerful config via Lua API.
- Vim – provides PHP syntax highlighting, debugging.[28]
Windows[edit]
Best Mac Php Editor
- ConTEXT – *No longer under development* Freeware editor with syntax highlighting.
- Crimson Editor – Lightweight editor. Supports FTP.
- Microsoft WebMatrix – A combined editor, server and publishing environment, syntax highlighting for HTML, PHP, Razor, node.js, C# and JavaScript and publishing through WebDeploy and FTP. Supports multiple file encodings as of version 2.
- Notepad2 – Simple editor with syntax highlighting
- Notepad++ – FLOSS multi-language editor with macro support, syntax highlighting (possible export to HTML), code completion, php.net function reference, foldable code blocks etc.; expandable via plugins, e.g. (S)FTP support, version control (Git, SVN), documentation generators, snippet support, spell checking, custom classes completion, code beautifiers
- PSPad – Supports FTP; syntax highlighting.
- RJ TextEd – Text editor with many great features
macOS[edit]
- Coda (web development software) - Shareware IDE/Editor
- TextWrangler – Supports SFTP and FTP
Linux[edit]
- Kate – Supports any file access protocol that is supported by KIO. This includes HTTP, FTP, SSH, SMB and WebDAV.
- KDevelop – Supports everything as Kate above with addition of references of functions and syntax parser.
Commercial editors[edit]
- ActiveState Komodo IDE – Support for PHP syntax checking, debugging, trial available (NOTE: As of 2020, ActiveState Komodo is now completely free, and only requires that you register an account in order to use)
- Adobe Dreamweaver – Supports SFTP and FTP; Trial available
- BBEdit – Supports SFTP and FTP; Trial available
- Cloud9 - Online editor (supports multiple languages) [29]
- Coda – Supports SFTP and FTP; Trial available
- CodeCharge Studio – Supports FTP
- Codelobster – Editor with syntax highlighting, debugger, code validation, supports FTP.
- Codenvy – Cloud development environment.
- Embarcadero RadPHP (formerly Delphi for PHP) – Focus on web (Facebook, Google) and mobile (iOS, Android) development; Trial available
- HTML-Kit – Syntax highlighting, supports FTP.
- HyperEdit – Integrates PHP, JavaScript and HTML in an only interface WYSIWYG.
- JetBrains PhpStorm – PHP IDE with editor, on-the-fly code analysis and other web development specific tools including FTP/SFTP synchronization; Trial available
- Komodo IDE – Cross-platform integrated development environment for PHP as well as Python, Ruby and Perl.
- Microsoft Expression Web – Full PHP support with syntax highlighting, etc.; Trial available
- NoteTab – Allows you to have multiple tabs open for different files, has FTP support, comes in two trial versions (NoteTab Standard, NoteTab Pro) and one free version NoteTab Light. NoteTab Pro highlights tags.
- NuSphere PhpED – A PHP development environment and integration with modern web standards. Supports SFTP, WebDAV, and FTP. Native support for CVS source control system, SVN and Git support can be added using Tortoise Windows Shell plugins.
- PHPEdit – Supports SFTP and FTP
- PHP Tools for Visual Studio PHP syntax highlighting, debugger, code validation, testing, support for other languages, among others. One- month trial available
- Rapid PHP Editor – Support for PHP syntax checking, auto-complete, debug and support for CSS, Javascript and HTML
- SourceLair - Online IDE for PHP,[30] as well as JavaScript and Python
- TextPad – Trial available
- Top PHP Studio – Supports FTP
- UltraEdit – Supports SFTP and FTP; Trial available
- Zend Studio – (Cross platform) professional PHP IDE, based on the PHP Development Tools plugin for the Eclipse platform; Trial available
References[edit]
- ^http://php.tutorialhorizon.com/how-to-debug-php-in-aptana-studio/
- ^Instructions for building Atom on FreeBSD are all that are officially available. No official binary releases are available.
- ^With the atom-autocomplete-php package.
- ^Fresh Ports www/bluefish
- ^Fresh Ports editors/codelite
- ^https://wiki.eclipse.org/Debugging_using_XDebug
- ^ThirdPartyPackages
- ^ abOutdated packages available only: https://wiki.gnome.org/Apps/Gedit.
- ^ abPlugin: https://github.com/addiks/gedit-phpide
- ^Plugin: https://github.com/addiks/gedit-dbgp-plugin
- ^With the FTP plugin
- ^With the FTP plugin
- ^With the SSH Console plugin
- ^No pre-built binaries are available. Build instructions are available for macOS.
- ^devel/kdevelop-kde4 Port
- ^With the Komodin Git addon
- ^[1] The PHP debugger is supported in Komodo IDE, not in Komodo Edit
- ^https://netbeans.apache.org/download/nb122/nb122.html
- ^https://netbeans.org/kb/docs/php/debugging.html
- ^Will run in Wine, however
- ^http://thecancerus.com/debugging-php-using-xdebug-and-notepad-part-i/
- ^But it is not free
- ^editors/scite Port
- ^Has been ported to virtually every Unix/Unix-like system and various others. Reference: download : vim online.
- ^'Releases · microsoft/vscode'. GitHub. Microsoft. Retrieved 17 December 2020.
- ^With the PHP IntelliSense extension.
- ^Henry, Alan (5 October 2016). 'Atom, the Text Editor from GitHub, Goes Free and Open-Source'. Lifehacker.
- ^How to Debug PHP with Vim and XDebug on Linux
- ^'Cloud9 - Your development environment, in the cloud'.
- ^'PHP support in SourceLair'. SourceLair Help.
Retrieved from 'https://en.wikipedia.org/w/index.php?title=List_of_PHP_editors&oldid=995915998'
Every program no matter how well written can have bugs or other defects - there's no exception to this rule, including in your PHP scripts or any other software program that you develop. Debugging is the process of finding the bugs so they can be fixed and the PHP Debugger is the best tool for helping you find the bugs fast and eliminate them from your PHP programs. You can setup remote debugging in PhpED with the help of debug PHP Settings Wizard and DBG Wizard. For information about supported platforms and how to install PHP Debugger modules please check debugging PHP on various platforms page.
How to debug a PHP script
There are many techniques used for PHP debugging, varying from desperate PHP code inspection to angry keyboard slamming. A less extreme and more useful approach would be to use print statements and logging embedded in your PHP code, printing out variable values throughout various stages of the program execution.This approach works well in general, however suffers from several drawbacks, for example:
- It requires significant additional coding effort, which ironically can introduce even more bugs into your php script
- Debugging of PHP with print statements is a highly repetitive process - it's impossible for a developer to lock onto a problematic region of code while printing everything and everywhere
- Introduction of so many print statements and conditional can affect the performance of your PHP application.
How to use PhpED's PHP Debugger
PhpED's PHP Debugger will let you step through your php code, control the execution flow, see the current values of all variables in the script as well as content of the arrays and classes at each stage or even assign different values to the variables on the fly and do all of it without making any changes to php application. This brief tutorial will help you to learn how to use PhpED's PHP Debugger.
Step through lines of php code
PhpED's PHP Debugger lets you step through the execution of a php scripts, line-by-line, just as you would using a conventional software debugger. Using the PhpED Debugger toolbar, you can:- Step-In: Execute the next line of php code.
- Step-Out: Return to the line of php code that called the function you are in.
- Step-Over: Execute the current line of php code.
Inspect Call-Stack
The Call Stack window displays the function calls that brought you to the current script location. The top of the Call Stack window lists the last function called by your script. Below this is the listing for the previously called function. The listing continues, with the first function called in your script located at the bottom of the list. The Call Stack window also shows the names of member functions (or methods). Each member function is prefixed with the name of the class that defines the function.
Inspect any variable or class in PHP
PhpED's PHP Debugger three ways to see the values of the variables or the members of the PHP class.- The value of the variable is shown when the cursor is hovered over the variable in PHP code
- The values of the Local variables and classes are displayed in Locals tab of PhpED debugger
- The values of the Global variables and classes are displayed in Globals tab of PhpED debugger
- Variables and classes added to the Watch tab of PhpED debugger and displayed there
Assign a different value to PHP variables in the script
The PhpED PHP Debugger will let you assign a different value to any PHP variable. This feature allows you test your fix before you change the actual PHP code in the script.Set/toggle break points to interrupt php script execution
PhpED allows you to easily set and toggle breakpoints anywhere in your PHP code. The lines of code highlighted in blue represent breakpoints. The line in red shows the PHP script current state. You can set/toggle breakpoints from a toolbar, by typing the 'F5' key, or by clicking on the red dot to the left of the line of code.Best Php Editor For Mac 2015 Download
Learn more about PHP Debugger Breakpoints hereCall PHP function on the fly and inspect the results
Using Immediate tab of PhpED debugger you can call any php function on the fly in the middle of the execution of your PHP script. Simply type in the function call in the window and press Enter. The functionality of Immediate tab is illustrated here:You can PhpED automatically switch to debug mode when there are PHP errors or exceptions occuer in the code. To set this behavior and other settings for PHP Debugger or Profiler use Tools->Settings->Run and Debug
The Evaluate/Modify window displays a non blocking dialog that can be used to evaluate an expression, which is too complex for the simple tool tip hint provided by the debugger and when the use of Watch is unnecessary. If the cursor is placed over a variable in the script, the variable under the cursor will be evaluated automatically and displayed in the dialog. The dialog is not modal so you can continue debugging session w/o closing this dialog.
Remote Debugging with SSH Tunnel
SSH Tunnels can be used for the communications with PHP Debugger on remote server. Using SSH Tunnels on SSH equiped remote server you can getrid of the headache of dealing with Firewalls and Routers. Learn more about setting up remote PHP Debugging communication on SSH Tunnels page
Remote and Local debugging of PHP CLI scripts
Debugging is also available for Command Line Interface PHP scripts. To set up Remote Debugging of CLI script you need to select Remote Server as a Run Target in project properties and specify Terminal account to login to the remote server as well as Php executable to be used for CLI runThis is of course not neccassary for local debugging of PHP CLI scripts. To run or debug PHP scripts select CLI (Console) from Run menu (HTTP is for regular Web Server scripts debugging)
Best Php Editor For Mac 2015 Gratis
Best Php Editor For Mac 2015 Torrent
In this tutorial you learned about the many features of the PHP Debugger and how to use them to quickly find and eliminate bugs from your PHP scripts. You can watch a live demonstration of using the PHP debugger and advanced remote PHP debugging from our video tutorial library. Additional technical information is available on the NuSphere Forum. Download a free trial of our PHP Debugger today!