blob: 1c6070f5d450228a0c9fee046d9471bc1609e21d [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>PHP - 框架和工具</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<h1>框架和工具</h1>
<p> &lt;img src="../../images_www/v7/3/features/php/framework-top.png" alt="PHP development in NetBeans IDE" class="box" border="none" <br>
<p class="intro">对最常用的 Web 框架(例如 Zend、Symfony、Doctrine、Smarty)的现成支持</p>
<span id="im1" class="overview-right"><img src="/images_www/v7/3/features/php/frameworks.png"></span>
<h2>Web 框架</h2>
<p>NetBeans IDE 支持以下常用 Web 框架:</p>
<ul>
<li><a href="http://framework.zend.com/">Zend 框架</a><a href="http://netbeans.org/kb/docs/php/zend-framework-screencast.html">截屏视频</a></li>
<li><a href="http://symfony.com/">Symfony2 框架</a></li>
<li><a href="http://symfony.com/legacy">Symfony1 框架</a><a href="http://netbeans.org/kb/docs/php/symfony-screencast.html">截屏视频</a></li>
</ul>
<p>通常,您可以使用这些框架来创建新 PHP 项目,运行框架命令,从控制器(操作)导航到其视图,在编辑器中使用框架标注和代码完成,以及定制其设置。</p>
<div class="line">&nbsp;</div>
<span id="im1" class="overview-left"><img src="/images_www/v7/3/features/php/php-generatedoc_small.png"></span>
<h2>使用 ApiGen 生成 PHP 代码文档</h2>
<p>您可以在 NetBeans PHP IDE 中使用 <a href="http://apigen.org/">ApiGen</a> 生成 PHP 代码文档。您必须自行下载 ApiGen,并在 IDE 的 "Options"(选项)中确保 IDE 识别 ApiGen 安装且已找到 ApiGen 脚本的正确路径。全部正确设置后,只需右键单击项目节点并选择 "Generate Documentation"(生成文档)即可。此时,IDE 会在所选位置生成文档文件。</p>
<div class="line">&nbsp;</div>
<table>
<tr>
<td class="valign-top"><h2>使用 Doctrine2 框架的 ORM</h2></td>
<!--<td></td>-->
<td class="valign-top"><h2>依赖关系(通过编写器)</h2></td>
<!--<td></td>-->
<td class="valign-top"><h2>Smarty 模板</h2></td>
<!--<td></td>-->
</tr>
<tr>
<td class="valign-top" style="width:33%;padding-right:10px;">
<p>
<span class="overview-centre" id="im24"><img src="/images_www/v7/3/features/php/doctrine2-04.png"></span><br /> NetBeans IDE 支持 ORM(对象关系映射)最常用的框架 <a href="http://www.doctrine-project.org">Doctrine2 框架</a>。您可以轻松地从 IDE 运行所有 Doctrine2 命令;有关详细信息,请观看<a href="http://netbeans.org/kb/docs/php/screencast-doctrine2.html">截屏视频</a>
</p>
</td>
<!--<td>&nbsp;</td>-->
<td class="valign-top" style="width:33%;padding-right:10px;">
<p>
<span class="overview-centre" id="im25"><img src="/images_www/v7/3/features/php/php-composer_small.png"></span><br /> NetBeans IDE 支持编写器 - 编写器是用于 PHP 中的依赖关系管理的工具。它允许您声明项目所需的相关库,并且会将这些库安装在项目中。
</p>
</td>
<!--<td>&nbsp;</td>-->
<td class="valign-top" style="width:33%;padding-right:10px;">
<p>
<span class="overview-centre" id="im26"><img src="/images_www/v7/3/features/php/php-smarty_small.png"></span><br /> Smarty 支持提供了标准 NetBeans IDE 编辑器的功能,即语法突出显示、代码模板、代码完成(包括标记文档、块标记匹配、解析器的错误提示等)。有关详细信息,请观看<a href="http://netbeans.org/kb/docs/php/screencast-smarty.html">截屏视频</a>
</p>
</td>
</tr>
<tr>
<td class="valign-top"><h2>Twig 模板</h2></td>
<!--<td></td>-->
<td class="valign-top"></td>
<!--<td></td>-->
<td class="valign-top"></td>
<!--<td></td>-->
</tr>
<tr>
<td class="valign-top" style="width:33%;padding-right:10px;">
<p>
<span class="overview-centre" id="im24"><img src="/images_www/v7/3/features/php/php-twig_small.png"></span><br/>
</p>
</td>
<!--<td>&nbsp;</td>-->
<td class="valign-top" style="width:33%;padding-right:10px;" colspan="2">
<p> IDE 提供对 Twig 模板(与 Symfony 框架紧密连接)的支持。它提供了<a href="https://blogs.oracle.com/netbeansphp/entry/twig_code_completion">所有 Twig 元素的代码完成</a>。即标记、过滤器、函数、测试和运算符。同时也记录了所有元素。用户也可以使用<a href="https://blogs.oracle.com/netbeansphp/entry/another_twig_improvements">内置代码模板</a>支持。
</p>
</td>
</tr>
</table>
<h2>另请参见</h2>
<ul class="bigger">
<li><a href="/community/releases/80/index.html">NetBeans IDE 8.1 发行版页</a>,提供最新稳定发行版中的特定功能的列表。</li>
<li><a href="../../kb/trails/php.html">PHP 和 HTML5 学习资源</a>,提供将帮助您入门的教程。</li>
</ul>
<div class="line">&nbsp;</div>
</body>
</html>