eclipse可以说是最著名、最流行的跨平台集成开发环境(IDE),最初主要用于Java语言开发,后来慢慢有人通过开发相应的插件使其作为C++、Python、PHP、Groovy、Ruby、Flex等其他主流开发语言的开发工具,这也毫无疑问是得益于Eclipse本身的插件机制,Eclipse的设计思想就是:一切皆插件。本文为你介绍一款支持php开发的eclipse插件:phpeclipse。
phpeclipse跨平台、支持所有主流的操作系统,具有如下特点:语法高亮显示;括号自动匹配;代码折叠;代码智能提醒;参数提示;实例标记;悬停工具提醒;PHP手册集成;代码模板;支持XDebug、DBG等php调试器。
下面详细介绍一下如何在eclipse或者myeclipse中安装集成phpeclipse插件。
?
系统最低配置要求
?
要安装PHPEclipse1.1.x系列的话,您至少需要eclipse3.2.x、java1.4.x或更高版本
要安装PHPEclipse1.2.x系列的话,您至少需要eclipse3.3.x、java1.5.x或更高版本
笔者使用的是eclipse3.3.2、MyEclipse6.5、jdk1.5.08。
?
安装
?
你可以采用update site的方式进行在线安装,详细的安装可以点击这里参考官方安装说明,但笔者不建议采用这种方式,因为更新网址经常出现访问不了的情况,笔者在采用这种方式安装的时候就遇到这种情况。
另外一种安装方式就是直接下载phpeclipse,然后再安装。您可以点击这里下载1.2.3版本,又或者直接访问官网(有时会出现访问不了的情况)下载最新版本。如果您是一个开发人员,那么您甚至还可以采用SVN的方式下载最新的源代码然后编译成您自己的版本。SVN地址是:http://www.phpeclipse.com/svn/ 。
下载文件后,您就可以把它集成到eclipse/myeclipse工具中了,下面是详细的安装步骤。如果您不喜欢看图文教程,不妨点击这里下载录像视频教程。
打开eclipse/myeclipse,然后打开菜单Help-> Software Updates -> Find and Install,如下图

如何安装phpeclipse1
接着选择Search for new feature to install,

如何安装phpeclipse2
在新窗口中点击“New Archived Site”,

如何安装phpeclipse3
选择下载的phpeclipse插件

如何安装phpeclipse4
编辑插件名称,一般保留默认,直接点击“OK”

如何安装phpeclipse5
接着下来除了要接受版权协议之外一直点击“Next”就行了,

如何安装phpeclipse6

如何安装phpeclipse7

如何安装phpeclipse8

如何安装phpeclipse9
重启eclipse/myeclipse

如何安装phpeclipse10
打开eclipse/myeclipse的php视图

如何安装phpeclipse11

如何安装phpeclipse12
在php视图下,在工程区域点击右键,在New在子菜单下就可以看到PHP Project选项了

如何安装phpeclipse13
到此已经完成phpeclipse插件的安装