您使用 PHP IDE 吗?

发布于 2024-08-19 15:03:26 字数 967 浏览 10 评论 0原文

我已经编程六年了,在那段时间里,我从未使用过 PHP IDE。我使用 Vim 感觉非常好,Linux shell, MySQL 命令行和 Subversion 命令行用于我的 Web 应用程序开发。当我被要求从事其他人的项目或开源项目时,我通常可以在快速了解系统架构后找到解决办法。

最近,我对 PHP IDE 感到好奇。我下载了 NetBeans,但我在调试安装问题时失去了耐心。

这让我想知道,使用好的 PHP IDE 是否会大幅提高我的工作效率? LAMP/PHP 开发人员使用 PHP IDE 的比例是多少?

I've programmed for six years, and in that time, I've never used a PHP IDE. I feel perfectly fine using Vim, the Linux shell, MySQL command line and Subversion command line for my web application development. When I'm asked to work on other people's projects, or open source projects, I can generally find my way around after a quick system architecture overview.

Recently, I was curious about PHP IDEs. I downloaded NetBeans, but I lost patience debugging installation problems.

It makes me wonder, will my productivity increase substantially with the use of a good PHP IDE? What percentage of LAMP/PHP developers use a PHP IDE?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(16

弥繁 2024-08-26 15:03:26

我现在总是使用IDE,如果它支持重构。我可以将它与 Vim 或 Emacs 一起使用,或者与 Vim 或 Emacs 一起使用,但重构现在已成为我的开发风格不可或缺的一部分,并且拥有自动化重构工具至关重要。

如果您只想使用您选择的任何 IDE 的编辑器功能,您可能不会受益匪浅。好处是:

  • IDE 可以为我们做一些需要花费更长时间的事情,或者
  • IDE 提供了我们需要费力才能找到的信息

I always use an IDE now, if it supports refactoring. I may use it in addition to, or alongside, Vim or Emacs, but refactoring is now an integral part of my development style and having automated refactoring tools is essential.

If you're only going to use the editor features of whatever IDE you choose, you probably won't benefit much. The benefit is when:

  • the IDE can do for us something that would take us much longer, OR
  • the IDE provides information that we would otherwise need to work to find
你是暖光i 2024-08-26 15:03:26

我过去曾在 PHP 项目中使用过 NetBeans,并且非常喜欢它。我喜欢它只是我的意见,但我不记得有任何安装问题。 NetBeans 与我的团队 SVN 服务器同步得很好,一切都很顺利。

I have used NetBeans in the past for PHP projects and liked it a lot. The fact I liked it is just my opinion, but I don't remember having any install issues. NetBeans synced up great with my teams SVN server and things worked smoothly.

黯淡〆 2024-08-26 15:03:26

我使用Eclipse。它臃肿、笨重、缓慢且古怪,但我发现它有一些功能可以让我成为更好/更快的开发人员。我喜欢使用 Eclipse 开发 PHP 的两个主要特点是:

  • 函数文档工具提示。鉴于 PHP 在很多方面都缺乏标准参数顺序,这对于 str 系列函数尤其有用。我不必记住特定的函数顺序是 ($haystack,$needle) 还是 ($needle,$haystack),我只需键入其名称即可该函数并将鼠标悬停在其上。
  • “跳转”功能。突出显示一个函数并按“F3”,它将带您到定义该函数的类或文件。这非常有帮助。

还有其他功能也很有用,尽管没有那么深刻。像自动完成和 PHPDoc 注释模板(输入 /** ,它会创建一个预先填充参数的基本块注释)之类的东西往往很方便。

由于 Eclipse 的缺陷,我倾向于使用多种工具进行开发。例如,我发现 UltraEdit 的“在多个文件中查找”功能非常出色(以及用于批量 SQL 编辑的“以列模式编辑”),并且我通常将其与 Eclipse 一起运行。

我曾多次尝试过 NetBeans,但过去每次安装它时,内部 PHP 函数文档都会被破坏,因此将鼠标悬停在任何内置 PHP 函数上都会出现一个智能感知框,显示“PHPDoc Not Found”。我发现这极其令人烦恼,并且每次都回到Eclipse。我喜欢它的外观,但我需要该功能(在某些论坛上对它的模糊引用有一位开发人员说构建脚本已损坏,因此它没有正确链接文档,但他们尚未修复它我的最后一次尝试)。

I use Eclipse. It's bloated, unwieldy, slow and quirky, but I find that it has some features that make me a better/faster developer. The two main things I like about developing PHP with Eclipse are:

  • Function documentation tooltips. Given that PHP lacks a standard parameter order for a lot of things, this is especially useful with the str family of functions. I don't have to remember whether a particular function order is ($haystack,$needle) or ($needle,$haystack), I can just type the name of the function and hover over it.
  • "Jump into" functionality. Highlight a function and hit 'F3', and it will take you to the class or file where that function is defined. This is extremely helpful.

There's other features that are useful as well, although not as profound. Things like autocomplete and PHPDoc comment templates (type /** and it creates a basic block comment pre-filled with your parameters) tend to be handy.

Due to deficiencies with Eclipse, I tend to develop with multiple tools. For example, I find UltraEdit's "Find in multiple files" functionality to be excellent (as well as "edit in Column mode" for batch SQL edits), and I usually have it running alongside Eclipse.

I've tried NetBeans several times, but each time I've installed it in the past, the internal PHP function documentation has been broken, so hovering over any built-in PHP function results in an intellisense box saying "PHPDoc Not Found". I found that extremely aggravating, and each time have gone back to Eclipse. I like the looks of it, but I need that functionality (a vague reference to it on some forum has one of the developers saying that the build script is broken so it's not linking the docs properly, but they had yet to fix it as of my last attempt).

日记撕了你也走了 2024-08-26 15:03:26

我也使用 NetBeans。到目前为止我尝试过的最好的。 Zend Studio 很糟糕,而 Eclipse 是无可挑剔的(对于初学者来说,你不能双击 php 文件在 Eclipse 中打开它)。还有更多免费和商业 IDE,但其中大多数仅适用于 Windows。

编辑:我最常使用的工具是:方法建议、重构、“转到声明/定义”、“查找用法”、调试(显然,因为它强调了错误的语句)。

I use NetBeans too. So far the best from what I've tried. Zend Studio is terrible and Eclipse is beyond any criticism (you cannot just double click php file to open it in Eclipse, for starters). There are several more free and commercial IDEs but most of them for Windows only.

Edit: tools I use most often are: method suggestion, refactoring, "go to declaration/defintion", "find usage", debuging (obviously, since it underlines erroneous statements).

牵你的手,一向走下去 2024-08-26 15:03:26

我使用带有 PHP 插件的 Eclipse,并且对此非常满意。

I use Eclipse with a PHP plugin and have been pretty happy with it.

说谎友 2024-08-26 15:03:26

我已经使用 Aptana Studio (Eclipse) 几年了,它有一个不错的 PHP 编辑器,内置代码提示。不过,新版本的 Aptana Studio 现在使用 PHP 开发工具 (PDT),而不是 Aptana 自己的编辑器。我在 PDT 方面一直没有好运,但希望 Aptana 参与该项目后开发会有所改善。

I've used Aptana Studio (Eclipse) for a few years and it had a decent PHP editor with code hinting built-in. However, the new version of Aptana Studio now uses PHP Development Tools (PDT) instead of Aptana's own editor. I never had good luck with PDT, but hopefully development will improve now that Aptana is involved in the project.

独自唱情﹋歌 2024-08-26 15:03:26

我使用 NetBeans(在 Windows 和 Linux 上),并且在以下环境中使用过 Eclipse过去(在 Windows 和 Linux 上)和 phpDesigner(在 Windows 上),这是一个商业工具。

这三者都具有大致相同的功能集,并且这三者都可用于调试 PHP 代码。

ATM,我更喜欢 NetBeans。

以前我使用普通编辑器,例如 Notepad++TextPad,使用具有代码完成和运行时调试功能的 IDE 提高了我的编码效率。

I use NetBeans (on Windows and Linux), and I have used Eclipse in the past (on Windows and Linux) and phpDesigner (on Windows) which is a commercial tool.

All three have approximately the same feature set, and all three can be used to debug PHP code.

ATM, I prefer NetBeans.

Previously I used plain editors such as Notepad++ and TextPad, my efficiency coding increased using an IDE with code-completion and runtime debugging.

万劫不复 2024-08-26 15:03:26

IDE 极大地加快了开发速度,自动完成功能非常有用。

我使用 CodeLobster ,它真的很棒而且免费,但如果你能花得起钱的话,它特别好(并且实际上有用途)针对流行的开源应用程序的各种扩展,例如 WordPress、< a href="http://en.wikipedia.org/wiki/Joomla" rel="nofollow noreferrer">Joomla 等

IDEs speed up development so much, just autocomplete is so useful.

I use CodeLobster which is really great and free, but it is especially good if you can afford to shell out money (and acutally have use for) for their various extensions for popular open source applications like WordPress, Joomla, etc.

前事休说 2024-08-26 15:03:26

我几乎使用过所有我能想到的 Windows 和 Linux 编辑器,而且我不得不说,如果我现在使用 IDE - 我喜欢 Eclipse PHP 开发工具 (PDT)。对于初学者,我推荐一体机。

Eclipse 是一个非常好的开发平台,每个人似乎都喜欢为它制作插件(因为它也是完全跨操作系统的)。 Google 为 Eclipse 提供了优于其他 IDE 的 Google Web Toolkit (GWT) 和 Android 插件。 FlexZend StudioAptana Studio 也只是 Eclipse 的美化版本。

此外,还有一些很酷的工具,例如 Subclipse 和大纲视图(显示 PHP / JavaScript 中的所有函数、类和规则)在 CSS 中),文件搜索[/和替换],支持正则表达式,并且可以轻松与本地或远程文件。这些往往会加快我的整体开发时间,我认为它们也适合您。

注意:使用 Eclipse 有一点学习曲线,并且一次简单地编辑一个文件比较困难(如果您创建项目最好),所以这实际上是一个偏好问题。如果您是一名专业的 PHP 开发人员并且您将大部分时间花在大型项目上,我真的建议您至少尝试一下。

I've used almost every editor I can think of for Windows and Linux, and I'd have to say that if I use an IDE these days - I love Eclipse PHP Developer Tools (PDT). For beginners, I'd recomment the all-in-one.

Eclipse is such a good development platform, and everyone seems to like making plugins for it (as it's completely cross-OS, too). Google has made their Google Web Toolkit (GWT) and Android plugins for Eclipse over other IDEs. Flex, Zend Studio, and Aptana Studio are just glorified versions of Eclipse as well.

Additionally, there are cool tools like Subclipse and Outline view (shows all functions in PHP / JavaScript, classes and rules in CSS), File Search [/ and Replace] with regular expression support, and easy comparison to local or remote files. These tend to speed up my overall development time, as I think they would for you too.

NOTE: There's a bit of a learning curve with Eclipse, and it's harder to simply edit a file at a time (it's best if you make projects), so it's really a matter of preference. If you're a professional PHP developer and you spend a majority of time on larger projects, I'd really recommend at least trying it out.

擦肩而过的背影 2024-08-26 15:03:26

我使用 Vim。我发现它是最简单、最干净的。

I use Vim. I find it the easiest and cleanest.

友谊不毕业 2024-08-26 15:03:26

我不是一个 PHP 人,但从我(可能类似)Perl 的角度来看,我发现 IDE 的以下函数有用/无用(至少就我所认为的 IDE 函数而言)

  • 代码样式(语法) hihgliting)和块折叠 - 非常有用。但老实说,这是高端编辑器的功能,而不是 IDE 本身的功能(例如,它包含在非 IDE 编辑器 UltraEdit 中,而不仅包含在 UltraEdit Studio 的 IDE 功能超集中)。我认为编程编辑器而不是 IDE 的其他功能也是如此 - 例如 FTP/源代码存储库集成、块选择、正则表达式支持等...

  • 代码分析 - 函数列表等...有用但不是生命-破碎。一个好的智能提示会很好,但同样不是“必须有”。

  • 与工具集成:对于 Perl,由于没有构建、项目、编译等...作为单独的复杂步骤,我发现对 IDE 的需求(以及使用 IDE 的好处)可以忽略不计。其他人可能不同意。

  • 集成调试 - 我从未听说过具有集成 Perl 调试功能的优秀 IDE(我对此类功能的理想选择始终是 Borland 的 Turbo 系列 IDE :))。但我可能会发现它非常有用/有帮助,因为人们使用蹩脚的 Perl 调试 GUI(如果我找到过的话)。

I am not a PHP person, but from my (probably similar) Perl perspective, I find that the following functions of IDE are useful/not (as far as what I perceive to be IDE functions at least)

  • Code styling (syntax hihgliting) and block folding - Highly useful. But this is a feature of a high-end editor rather than IDE proper, to be honest (e.g. it is included in non-IDE editor UltraEdit, not only in IDE-proper superset of UltraEdit Studio). Ditto for other features that i'd consider programming editor rather than IDE - e.g. FTP/source code repository integration, block selection, regex support, etc...

  • Code analysis - function lists, etc... Useful but not life-shattering. A good intelligent hints would be nice but again not "must have".

  • Integration with tools: For Perl, since there's no building, projects, compilation etc... as separate complicated steps, I found the need for IDE (and thus the win from using one) to be negligible. Other people might disagree.

  • Integrated debugging - I never heard of a good IDE with integrated Perl debugging (my ideal for such functionality would always lie with Borland's Turbo series of IDEs :) ). But I would probably find it very useful/helpful given the crappy Perl debugging GUI people use, if I ever found one.

微暖i 2024-08-26 15:03:26

我使用过 Eclipse + PDT 和 NetBeans。我更喜欢 Eclipse。

我认为任何生产力的提高都将根据开发人员和项目的性质而有所不同。我使用 TextMateVim 用于小型项目,而我为更大/更复杂的项目或具有我不熟悉的底层 API 的项目保留 IDE。当一个项目或其底层框架有如此多的方法,你不可能学习和记住它们的所有签名和返回类型时(至少在迭代期间),拥有内置的 API 完成功能会很有帮助。 。此外,复杂项目上的调试器集成可以节省大量时间(特别是如果您不使用测试套件)。

另一件需要记住的事情是,要看到效率的大幅提升,您必须学习如何有效地使用 IDE 的工具集,这将有一个学习曲线。根据我的经验,治愈在我使用过的任何 IDE 中都不是主要的,但它确实存在。

I've used Eclipse + PDT and NetBeans. I much prefer Eclipse.

I think any productivity gains are going to vary depending on both the developer and the nature of the project. I use TextMate or Vim for small projects, while I reserve IDEs for larger/more complex projects or ones with underlying APIs I am not familiar with. Having a built-in API completion is a big help when a project or its underlying framework have so many methods you can't possibly learn and remember all their signatures and return types (at least for the duration of the iteration one is working on). Also debugger integration on complex projects can be a huge timesaver (especially if you're not using a testing suite).

Another thing to keep in mind is that to see a big gain in efficiency, you have to learn how to use the toolset of the IDE efficiently which will have a learning curve. In my experience that cure hasn't been major in either IDE I've used, but it is there.

请你别敷衍 2024-08-26 15:03:26

我不使用 IDE,但我也在 PHP 中处理相当小的项目。我使用 textmate,它有点像 mac 上的 *nix 编辑器,具有良好的 shell 集成。对于一般的脚本语言,我不使用 IDE。就我个人而言,我唯一真正欣赏 IDE 的时候是必须编译/链接的时候。我从来都不喜欢 make 等。

I don't use an IDE but I also work on fairly small projects in PHP. I use textmate which is a bit like a *nix editor on mac with nice shell integration. For scripting languages in general I don't use IDEs. Personally, the only time I really appreciate an IDE is when you must compile/link. I've never been a fan of make etc.

╄→承喏 2024-08-26 15:03:26

Eclipse PDT 似乎对我有用。我不是一名网络开发人员,但为一家非营利组织改造了一个网站,该非营利组织的网络开发人员因工作调动而离开。没有任何文档或系统概述,我能够简单地使用 Eclipse 的变量信息弹出框工具(我不确定它的正式名称是什么,但我希望您能理解)来找到解决办法并进行更改。从生产力的角度来看,自动缩进和变量/关键字自动完成功能是一个很好的速度助推器。

Eclipse PDT seems to work for me. I'm not a web developer, but took on revamping a website for a non-profit who had their web developer leave due to job relocation. Without any documentation or system overview, I was able to find my way around and make changes simply using Eclipse's variable information pop-up box tool (I'm not sure what it is formally called, but I hope you get the picture). From a productivity point of view, the auto-indent and variable/keyword auto-completion features is a great speed booster.

稚气少女 2024-08-26 15:03:26

如果您使用的是 Mac,我推荐 Coda。它有一个很棒的功能集 - 集成FTPSVN, CSS< /a> 编辑器、终端等以及流畅的界面。售价 99 美元,但非常值得。

If you're using a Mac, I recommend Coda. It has a great feature set - integrated FTP, SVN, CSS editor, terminal, etc. and a slick interface. It's US$99, but it is well worth it.

避讳 2024-08-26 15:03:26

我真的很喜欢 ActiveState 的Komodo Edit。我使用该软件的精简版,它将项目文件保存在一起,具有完整的代码、代码突出显示等功能。

I really like Komodo Edit by ActiveState. I use the lite version of the software, and it keeps project files together, has code complete, code hightlighting, the works.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文