PHP 的最佳 IDE 是什么?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/116292/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What is the best IDE for PHP?
提问by Brayn
I'm a PHP developer and now I use Notepad++for code editing, but lately I've been searching for an IDE to ease my work.
我是一名 PHP 开发人员,现在我使用Notepad++进行代码编辑,但最近我一直在寻找 IDE 来简化我的工作。
I've looked into Eclipse, Aptana Studioand several others, but I'm not really decided, they all look nice enough but a bit complicated. I'm sure it'll all get easy once I get used to it, but I don't want to waste my time.
我已经研究过Eclipse、Aptana Studio和其他几个,但我还没有真正决定,它们看起来都不错,但有点复杂。我相信一旦我习惯了,一切都会变得容易,但我不想浪费时间。
This is what I'm looking for:
这就是我要找的:
- FTP support
- Code highlight
- SVN support would be great
- Ruby and JavaScript would be great
- FTP 支持
- 代码高亮
- SVN 支持会很棒
- Ruby 和 JavaScript 会很棒
采纳答案by Matt J
Are you sure you're looking for an IDE? The features you're describing, along with the impression of being too complicated that you got from e.g. Aptana, suggest that perhaps all you really want is a good editor with syntax highlighting and integration with some common workflow tools. For this, there are tons of options.
您确定要寻找 IDE 吗?您所描述的功能,以及您从 Aptana 等获得的过于复杂的印象,表明您可能真正想要的是一个具有语法突出显示和与一些常见工作流工具集成的优秀编辑器。为此,有很多选择。
I've used jEditon several platforms successfully, and that alone puts it above most of the rest (many of the IDEs are cross-platform too, but Aptana and anything Eclipse-based is going to be pretty heavy-weight, if full-featured). jEdit has ready-made plugins for everything on your list, and syntax highlighting for a wide range of languages. You can also bring up a shell in the bottom of your window, invoke scripts from within the editor, and so forth. It's not perfect (the UI is better than most Java UIs, but not perfect yet I don't think), but I've had good luck with it, and it'll be a hell of a lot simpler than Aptana/Eclipse.
我已经在多个平台上成功地使用了jEdit,仅此一项就将其置于其他大多数平台之上(许多 IDE 也是跨平台的,但是 Aptana 和任何基于 Eclipse 的东西都将是非常重量级的,如果是完整的——精选)。jEdit 为您列表中的所有内容提供现成的插件,并为多种语言提供语法突出显示。您还可以在窗口底部调出一个 shell,从编辑器中调用脚本,等等。它并不完美(UI 比大多数 Java UI 好,但我认为并不完美),但我很幸运,它比 Aptana/Eclipse 简单得多。
That said, I do like Aptana quite a bit for web development, it does a lot of the grunt work for you once you're over the learning curve.
也就是说,我非常喜欢 Aptana 的 Web 开发,一旦你完成了学习曲线,它就会为你做很多繁重的工作。
回答by akorsun
For PHP I would recommend PhpStorm.
对于 PHP,我会推荐PhpStorm。
It supports FTP/SFTP synchronization, integrates well with Subversion, CVS, Mercurialand even with Git. Also, it supports HTML, CSS, JavaScript and handles language-mixing well like SQL or HTML blocks inside PHP code, JSON, etc.
它支持 FTP/SFTP 同步,与Subversion、CVS、Mercurial甚至与Git很好地集成。此外,它支持 HTML、CSS、JavaScript 并能很好地处理语言混合,如 PHP 代码、JSON 等中的 SQL 或 HTML 块。
But if you need Ruby you can try another IDE - RubyMinewith same capabilities but for Ruby.
但是如果您需要 Ruby,您可以尝试另一个 IDE - RubyMine具有相同的功能,但适用于 Ruby。
回答by l_39217_l
NetBeans. Check out 7.0.1.
网豆。查看 7.0.1。
It supports FTP/SFTP synchronization, integrates well with Subversion, CVS, Mercurial and even with Git (with plugin). Also, it supports HTML, CSS, JavaScript, popular frameworks and more.
它支持 FTP/SFTP 同步,与 Subversion、CVS、Mercurial 甚至与 Git(带插件)很好地集成。此外,它支持HTML,CSS,JavaScript的,流行的框架和更多。
And its free.
而且是免费的。
回答by SchizoDuckie
Too bad no one mentioned phpDesigner. It's really the best IDE I've came across (and I believe I've tried them all).
可惜没有人提到phpDesigner。这确实是我遇到的最好的 IDE(而且我相信我已经尝试了所有这些)。
The main pro of this one is that it's NOTJava based. This keeps the whole thing quick.
这个的主要优点是它不是基于 Java 的。这使整个过程保持快速。
Features:
特征:
- Intelligent Syntax Highlighter - automatic switch between PHP, HTML, CSS, and JavaScript depending on your position!
- PHP (both version 4 and 5 are supported)
- SQL (MySQL, MSSQL 2000, MSSQL 7, Ingres, Interbase 6, Oracle, Sybase)
- HTML/XHTML
- CSS (both version 1 and 2.1 are supported)
- JavaScript
- VBScript
- Java
- C#
- Perl
- Python
- Ruby
- Smarty
- 智能语法荧光笔 - 根据您的位置在 PHP、HTML、CSS 和 JavaScript 之间自动切换!
- PHP(支持第 4 版和第 5 版)
- SQL(MySQL、MSSQL 2000、MSSQL 7、Ingres、Interbase 6、Oracle、Sybase)
- HTML/XHTML
- CSS(支持版本 1 和 2.1)
- JavaScript
- 脚本
- 爪哇
- C#
- 珀尔
- Python
- 红宝石
- 聪明的
PHP:
PHP:
- Support for both PHP 4 and PHP 5
- Code Explorer for PHP (includes, classes, extended classes, interfaces, properties, functions, constants and variables)
- Code Completion (IntelliSense) for PHP - code assist as you type
- Code Tip (code hint) for PHP - code assist as you type
- Work with any PHP frameworks (access classes, functions, variables, etc. on the fly)
- PHP object oriented programming (OOP) including nested objects
- Support for PHP heredoc
- Enclose strings with single- or double quotes, linefeed, carriage return or tabs
- PHP server variables
- PHP statement templates (if, else, then, while…)
- Powerful PHP Code Beautifier with many configurations and profile support
- phpDocumentor wizard
- Add phpDocumentor documentation to functions and classes with one click!
- phpDocumentor tags
- Comment or uncomment with one click!
- Jump to any declaration with filtering by classes, interfaces, functions, variables or constants
- 支持 PHP 4 和 PHP 5
- PHP 代码资源管理器(包括类、扩展类、接口、属性、函数、常量和变量)
- 用于 PHP 的代码完成 (IntelliSense) - 键入时的代码辅助
- 用于 PHP 的代码提示(代码提示) - 键入时的代码帮助
- 使用任何 PHP 框架(即时访问类、函数、变量等)
- PHP 面向对象编程 (OOP),包括嵌套对象
- 支持 PHP heredoc
- 用单引号或双引号、换行符、回车符或制表符将字符串括起来
- PHP 服务器变量
- PHP 语句模板(if、else、then、while...)
- 强大的 PHP 代码美化器,具有多种配置和配置文件支持
- phpDocumentor 向导
- 一键将phpDocumentor文档添加到函数和类中!
- phpDocumentor 标签
- 一键评论或取消评论!
- 通过类、接口、函数、变量或常量过滤跳转到任何声明
Debug (PHP):
调试(PHP):
- Debug with Xdebug
- Breakpoints
- Step by step debugging
- Step into
- Step over
- Run to cursor
- Run until return
- Call stack
- Watches
- Context variables
- Evaluate
- Profiling
- Multiple sessions
- Evaluation tip
- Catch errors
- 使用 Xdebug 进行调试
- 断点
- 分步调试
- 踏入
- 跨过去
- 运行到光标
- 运行直到返回
- 调用栈
- 手表
- 上下文变量
- 评估
- 剖析
- 多个会话
- 评估提示
- 捕捉错误
回答by EricSchaefer
Eclipse PDTis very nice.
Eclipse PDT非常好。
回答by reefnet_alex
I'm always amazed that more people don't use ActiveState Komodo.
我总是很惊讶更多人不使用ActiveState Komodo。
It has the best debugging facilities of any PHP IDE I have tried, is a very mature product and has more useful features than you can shake a stick at. Of note, it has a fantastic HTTP inspector, Javascript debugger and Regular Expression Toolkit. You can get it so that it steps through your PHP, then you see your Javascript running, and then see your HTTP traffic going out over the wire!
它拥有我尝试过的任何 PHP IDE 中最好的调试工具,是一个非常成熟的产品,并且具有比您动摇的更多有用的功能。值得注意的是,它有一个很棒的 HTTP 检查器、Javascript 调试器和正则表达式工具包。您可以获得它,以便它逐步执行您的 PHP,然后您会看到您的 Javascript 正在运行,然后您会看到您的 HTTP 流量通过网络流出!
It also comes in free (Komodo Edit) and open (OpenKomodo versions).
它还提供免费(Komodo Edit)和开放(OpenKomodo 版本)。
Oh, and if you don't always hack juston PHP, it's designed as a multi-language editor and rocks for Ruby and Python too.
哦,如果你不总是只使用 PHP,它被设计为一个多语言编辑器,并且也适用于 Ruby 和 Python。
I've been a happy customer for around 5 years.
我一直是一个快乐的客户大约 5 年。
回答by Devon
To get you started, here is a list of PHP Editors(Wikipedia).
为了让您开始,这里有一份 PHP 编辑器列表(维基百科)。
回答by deadprogrammer
There's no "best" IDE, only better and worse ones.
没有“最好”的 IDE,只有更好和更差的 IDE。
Right now I'm trying to settle in with Aptana. It has a lot of cruft that I don't want, like "Jaxer" doodads all over the place. It's reasonably fast, but chokes on large files when syntax highliting is on. I have not been able to figure out how to set up PHP debugging. Three good things about Aptana: easy plugin installations, very fast and intuitive Subversion plugins, ligning fast file search.
现在我正在努力适应 Aptana。它有很多我不想要的杂物,比如到处都是“Jaxer”小玩意。它相当快,但是当语法高亮打开时,大文件会窒息。我一直无法弄清楚如何设置 PHP 调试。Aptana 的三个优点:简单的插件安装、非常快速和直观的 Subversion 插件、快速的文件搜索。
I tried Eclipse PDT and Zend for Eclipse, but they have nightmare levels of interface cruft. Installing plugins is a living horror of version mismatches and cryptic error messages.
我为 Eclipse 尝试了 Eclipse PDT 和 Zend,但它们的界面细节简直是噩梦。安装插件是版本不匹配和神秘错误消息的活生生的恐怖。
I also use Komodo (they bought us licenses at work). Komodo has a very intuitive interface, but is ridiculously slow, chokes on medium sized files with syntax highlighting. File search is intuitive, but rather slow. Subversion integration is not that great - slow and buggy. If not for slowness, I would have probably stuck with Komodo, especially for the debugger.
我也使用 Komodo(他们在工作时为我们购买了许可证)。Komodo 有一个非常直观的界面,但速度慢得离谱,在语法高亮显示中等大小的文件时会卡住。文件搜索很直观,但速度很慢。Subversion 集成并不是那么好 - 缓慢且有问题。如果不是因为速度慢,我可能会坚持使用 Komodo,尤其是对于调试器。
回答by Pop Catalin
回答by Jhong
Geanyis a great lightweight editor -- like Notepad++for Linux, only better. I find this, combined with a few shell scripts and symlinks for linking modules into a web source tree, make developing on Linux easy and fun.
Geany是一个很棒的轻量级编辑器——就像Linux 的Notepad++,只是更好。我发现这一点,再加上一些用于将模块链接到 Web 源代码树的 shell 脚本和符号链接,使在 Linux 上的开发变得简单而有趣。

