如何直接从 Eclipse 环境为 Eclipse 安装 PHP IDE 插件?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2397978/
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
How to install a PHP IDE plugin for Eclipse directly from the Eclipse environment?
提问by Kirzilla
I have a clean Eclipse Java SDK. I would like to make it suitable for developing PHP applications. So I need a PHP IDE plugin (or something like that). How could I install it from the Eclipse environment?
我有一个干净的 Eclipse Java SDK。我想让它适合开发 PHP 应用程序。所以我需要一个 PHP IDE 插件(或类似的东西)。如何从 Eclipse 环境安装它?
回答by Marcos Placona
Easy as pie:
非常简单:
Open Eclipse and go to Help-> Software Updates-> Find and Install Select "Search for new features to install" and click "Next" Create a New Remote Site with the following details:
打开 Eclipse 并转到“帮助”->“软件更新”->“查找并安装”选择“搜索要安装的新功能”,然后单击“下一步”创建一个包含以下详细信息的新远程站点:
Name: PDT
名称:PDT
URL: http://download.eclipse.org/tools/pdt/updates/4.0.1
网址:http: //download.eclipse.org/tools/pdt/updates/4.0.1
Get the latest above mentioned URLfrom -
获取最新的上述 URL from -
http://www.eclipse.org/pdt/index.html#download
http://www.eclipse.org/pdt/index.html#download
Check the PDT box and click "Next" to start the installation
勾选PDT框,点击“下一步”开始安装
Hope it helps
希望能帮助到你
回答by Ripon Al Wasim
To install PDT (PHP Development Tools) for PHP development environment is better in Eclipse. The following are the steps to install PDT in Eclipse (I'm considering version 3.7(Indigo)):
PHP开发环境安装PDT(PHP开发工具)在Eclipse中比较好。以下是在 Eclipse 中安装 PDT 的步骤(我正在考虑版本 3.7(Indigo)):
- Open Eclipse (in my case Eclipse Indigo).
- Go to Help --> Install New Software...
- Expand the "Work with" drop down and select "Indigo - http://download.eclipse.org/releases/indigo".
- Expand "Programming Languages" from the list.
- Check PHP Development Tools (PDT) SDK Feature.
- Click "Next >" at the bottom and follow the further instruction of Eclipse.
- After successful installation of PDT: Go to Window --> Preferences and see the list as PHP at left panel.
- 打开 Eclipse(在我的例子中是 Eclipse Indigo)。
- 转到帮助 --> 安装新软件...
- 展开“Work with”下拉菜单并选择“Indigo - http://download.eclipse.org/releases/indigo”。
- 从列表中展开“编程语言”。
- 检查 PHP 开发工具 (PDT) SDK 功能。
- 单击底部的“下一步 >”并按照 Eclipse 的进一步说明进行操作。
- 成功安装 PDT 后:转到窗口 --> 首选项并在左侧面板中查看 PHP 列表。
回答by Geltrude
Open up eclipse, go to "Help -> Install New Software". Enter:
打开eclipse,进入“Help -> Install New Software”。进入:
entry from the "Work with" dropdown.
“使用”下拉菜单中的条目。
Under the "Web, XML, Java EE and OSGi Enterprise Developmet" category, select "PHP Development Tools (PDT) SDK Feature 3.1.1.201209101312".
在“Web、XML、Java EE 和 OSGi Enterprise Developmet”类别下,选择“PHP Development Tools (PDT) SDK Feature 3.1.1.201209101312”。
回答by guy schaller
The new URLfor the repository is now http://download.eclipse.org/tools/pdt/updates/release. In Eclipse: open Help -> install new sofware -> add. Then paste this URL in the location.
存储库的新URL现在是http://download.eclipse.org/tools/pdt/updates/release。在 Eclipse 中:打开帮助 -> 安装新软件 -> 添加。然后将此 URL 粘贴到该位置。
Mark the check boxes you want and click next.
标记所需的复选框,然后单击下一步。
回答by masoud2011
Help --> Install New Software In work with select box , only I have selected Kepler - http://download.eclipse.org/releases/keplerAnd then under Programming language category you can find PHP Development tool.
帮助 --> 安装新软件 在使用选择框时,只有我选择了 Kepler - http://download.eclipse.org/releases/kepler然后在编程语言类别下,您可以找到 PHP 开发工具。
fyi :I have ubuntu
仅供参考:我有ubuntu
回答by briankip
The best solution would be to go to http://projects.eclipse.org/projects/tools.pdt/downloadswhere you will find the URL to the most updated PDT, as most of the URLS listed above are hitting a 404. Then pasting the URL to eclipse.
最好的解决方案是访问http://projects.eclipse.org/projects/tools.pdt/downloads,在那里您可以找到最新 PDT 的 URL,因为上面列出的大多数 URL 都达到了 404。然后将 URL 粘贴到 eclipse。
回答by Pec1983
Easiest Way To install PDT
安装 PDT 的最简单方法
- Run eclipse
- Click on "Help", "Install New Software"
- “Choose all available sites”, in search box type "php"(takes a while to load)
- => “programming languages” => "PHP Development Tools", => PhP Development Tools (PDT) SDK Feature.
- Restart eclipse
- File new => other => php .
- Should be able to follow from their
- 运行日食
- 点击“帮助”,“安装新软件”
- “选择所有可用站点”,在搜索框中输入“php”(加载需要一段时间)
- => “编程语言” => “PHP 开发工具”,=> PhP 开发工具 (PDT) SDK 功能。
- 重启日食
- 文件新 => 其他 => php 。
- 应该能够从他们的
回答by Sakari Niittymaa
Eclipse for PHP Developers Package
用于 PHP 开发人员的 Eclipse 包
Looking for the Eclipse for PHP Developers Package?
正在寻找 Eclipse for PHP Developers Package?
Due to lack of a package maintainer for the Indigo release there will be no PHP (PDT) package. If you would like to install PDT into your Eclipse installtion you can do so by using the Install New Software feature from the Help Menu and installing the PHP Development Tools (PDT) SDK Feature from the Eclipse Indigo Repo >> http://download.eclipse.org/releases/indigo
由于 Indigo 版本缺少包维护者,因此将没有 PHP (PDT) 包。如果您想将 PDT 安装到您的 Eclipse 安装中,您可以通过使用帮助菜单中的安装新软件功能并从 Eclipse Indigo Repo >> http://download安装 PHP 开发工具 (PDT) SDK 功能来实现。 eclipse.org/releases/indigo
Text grabbed from page: http://www.eclipse.org/downloads/php_package.php
回答by MiB
Updated for 2019: As previously suggested, in the latest Eclipse, go to "Install New Software" in the Help Menu and click the "add" button with this URL http://download.eclipse.org/tools/pdt/updates/latest/that should show the latest release of PHP Development Tools (PDT). You might need to search for "php" or "pdt". For Nightly releases you can use http://download.eclipse.org/tools/pdt/updates/latest-nightly/.
2019 年更新:如前所述,在最新的 Eclipse 中,转到“帮助菜单”中的“安装新软件”,然后单击此 URL 的“添加”按钮http://download.eclipse.org/tools/pdt/updates/ latest/应该显示最新版本的 PHP 开发工具 (PDT)。您可能需要搜索“php”或“pdt”。对于每夜发布,您可以使用http://download.eclipse.org/tools/pdt/updates/latest-nightly/。
回答by Rahul
The URLwhich worked for me is http://download.eclipse.org/tools/pdt/updates/2.0/interim/.
对我有用的URL是http://download.eclipse.org/tools/pdt/updates/2.0/interim/。
See also Stack Overflow question Installing PDT in Eclipse - No runtime option .. only SDK.
另请参阅 Stack Overflow 问题在 Eclipse 中安装 PDT - 无运行时选项 .. 仅 SDK。

