blob: 712843f830de853e85c49936218479214abbdf91 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>PHP - Frameworks & Tools</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<h1>Frameworks & Tools</h1>
<p> <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">Out of the box support for most used web frameworks like Zend, Symfony, Doctrine, Smarty</p>
<span id="im1" class="overview-right"><img src="/images_www/v7/3/features/php/frameworks.png"></span>
<h2>Web Frameworks</h2>
<p>NetBeans IDE supports the following popular web frameworks:</p>
<ul>
<li><a href="http://framework.zend.com/">Zend Framework</a>
(<a href="http://netbeans.org/kb/docs/php/zend-framework-screencast.html">screencast</a>)</li>
<li><a href="http://symfony.com/">Symfony2 Framework</a></li>
<li><a href="http://symfony.com/legacy">Symfony1 Framework</a>
(<a href="http://netbeans.org/kb/docs/php/symfony-screencast.html">screencast</a>)</li>
</ul>
<p>In general, you can create new PHP projects with these frameworks, run framework commands, navigate from
controller (action) to its view, use framework annotations and code-completion in the editor and customize its settings.</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>Documenting PHP Code with ApiGen</h2>
<p>You can use NetBeans PHP IDE to generate PHP code documentation with
<a href="http://apigen.org/">ApiGen</a>. You must download ApiGen yourself and make certain in the IDE Options that the IDE
recognizes the ApiGen installation and that the IDE has found the correct path to the ApiGen script. After you set everything up
correctly, all you have to do is right-click a project node and select Generate Documentation. The IDE generates the documentation files
in the location of your choice.</p>
<div class="line">&nbsp;</div>
<table>
<tr>
<td class="valign-top"><h2>ORM using Doctrine2 Framework</h2></td>
<!--<td></td>-->
<td class="valign-top"><h2>Dependencies via Composer</h2></td>
<!--<td></td>-->
<td class="valign-top"><h2>Smarty Templates</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 supports the most used framework for ORM (Object-relational mapping), <a href="http://www.doctrine-project.org">Doctrine2 Framework</a>.
You can easily run all the Doctrine2 commands right from the IDE; see <a href="http://netbeans.org/kb/docs/php/screencast-doctrine2.html">screencast</a>
for more information.
</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 supports Composer - Composer is a tool for dependency management in PHP. It allows you
to declare the dependent libraries your project needs and it will install them in your project for you.
</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 support offers features of the standard NetBeans IDE editor, it means the syntax coloring, code templates, code completion
including tags documentation, block tags matching, parser's error hints and more. see <a href="http://netbeans.org/kb/docs/php/screencast-smarty.html">screencast</a>
for more information.
</p>
</td>
</tr>
<tr>
<td class="valign-top"><h2>Twig Templates</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> The IDE provides a support for Twig templates (which are closely connected with Symfony Framework). It provides a
<a href="https://blogs.oracle.com/netbeansphp/entry/twig_code_completion">code completion for all of Twig elements</a>. It means
Tags, Filters, Functions, Tests and Operators. All elements are also docummented. One can also use a
<a href="https://blogs.oracle.com/netbeansphp/entry/another_twig_improvements">build-in code templates</a> support.
</p>
</td>
</tr>
</table>
<h2>See Also</h2>
<ul class="bigger">
<li><a href="/community/releases/81/index.html">NetBeans IDE 8.1 Release Page</a> for a list of specific features in the latest stable release.</li>
<li><a href="../../kb/trails/php.html">PHP and HTML5 Learning Trail</a> for tutorials that will help you get started.</li>
</ul>
<div class="line">&nbsp;</div>
</body>
</html>