An Oracle blog about NetBeans for PHP

Zend Framework support

Guest Author

Hi all, today I would like to inform that we just added initial support for Zend framework. So, let's have a look at what is supported right now.

Of course, first of all it is a good idea to specify a path to Zend command line tool:

Zend framework Options

Next, we want to create a new project with Zend framework (please notice that the Zend framework files are currently not copied to the project, this is on our TODO list) :

Zend framework in New Project Wizard

The generated project can look like this:

PHP project with Zend framework

Next, we would like to invoke some Zend commands, of course:

Invoke Zend command

So, let's add an action to our Index controller:

Add Zend Action

We can review the result in the Output window - it's done!

Output window with new Zend action

Also, one can navigate from action to view and vice versa, similarly as for Symfony framework (just right click in a view or in an action and choose Navigate > Go to View/Action). 

That's all for today, as always, please test it and report all the issues or enhancements you find in NetBeans IssueZilla (component php, subcomponent Zend).

Join the discussion

Comments ( 44 )
  • Endijs Lisovskis Wednesday, January 6, 2010

    Nice! I bet that after NetBeans will have ZF support a lot of EclipsePDT users will switch to NetBeans. I will be one of them. Thanks in advance!

  • Pawka Wednesday, January 6, 2010

    Great! I've waited for this for a looong time :-)

  • Bill YILDIRIM Wednesday, January 6, 2010

    I am testing this now but getting the following error

    An Error Has Occurred

    Provider 'nb-commands2 is not a valid provider

    And of course rest of the command list gets messed up.

  • Bill YILDIRIM Wednesday, January 6, 2010

    Ignore my comment. Will file a bug.

  • Tomas Mysik Wednesday, January 6, 2010

    To Bill YILDIRIM:

    Sorry, right now no idea what could be wrong. You can follow/update this issue:




  • snapshot Wednesday, January 6, 2010

    Only for linux?

  • Maghiel Dijksman Wednesday, January 6, 2010

    Very nice! Big step forward in making NetBeans become adult for PHP developers.

    I'm facing same issue as above, added my situation to the comments.

    My remark:

    It is very nice to add support for the zend tool, but myself I hardly use it.

    What I would love to see from ZF support is code completion in Views and Action Controllers.

    Short example:

    class IndexController extends Zend_Controller_Action


    public function indexAction()


    $this->view->foo = 'Foo!';




    <?php echo $this-> [ctrl+enter]

    No suggestions. While it would be nice to see foo and all the view helpers show up.

    Shall I file an issue for this?

  • Tomas Mysik Wednesday, January 6, 2010

    To Maghiel Dijksman:

    This is planned for NB 6.9 we hope.

  • Maghiel Dijksman Wednesday, January 6, 2010

    Thanks Tomas, can't wait! (as well as for zend debugger support :))

  • Espen Liland Wednesday, January 6, 2010

    Great stuff! Netbeans should now be able to steal A LOT (!!) of users from the ugly, expensive, bloated and buggy Zend Studio 6+.

  • Guillermo Wednesday, January 6, 2010

    How about support for CodeIgniter?

  • Ondrej Mirtes Wednesday, January 6, 2010

    Similar support for Nette Framework would be nice :) Presenters and template generating (from user defined templates), code completion in templates, maybe URL info from routes definition for every presenter :)

  • DavidTan Wednesday, January 6, 2010

    Great work. more php developers will say goodbye to eclipse and zend studio pretty soon.

    Hopefully cakephp support will be next in the list.

  • edho Wednesday, January 6, 2010

    nice work!

  • aur1mas Thursday, January 7, 2010

    I'll be one of those who will switch from eclispe PDT to NetBeans :)

    Also, I've never noticed that NetBeans also have Symfony support :)

  • Dani Thursday, January 7, 2010

    i am a happy switcher from Zend Studio...

    NetBeans rocks! i'll wait to the stable release to check the zend framework new features, but right now i am using netbeans+zf and just symply works great!

    i love xdebug support, unit tests and selenium

    PD: Zend! i want my money back! hehehe :D

  • dGo Friday, January 8, 2010

    Man !!!

    this is great !

    I was waiting for this...

    I hope it'll be available as a plugin soon !!

  • alex Friday, January 8, 2010




  • meme Friday, January 8, 2010

    WOHOOOOOOOOOOOOOOOOO! Finally, ZF support is rollin'. THX!

  • oo Saturday, January 9, 2010

    As Ondrej Mirtes has said, Nette Framework support would be fantastic!

  • DavidZ Saturday, January 9, 2010

    This is great!. I've been working with Zend Framework for 8 months using Netbeans, just adding it to my global netbeans's PHP include path and it just worked ok. But i've tried out to work with Symfony in Netbeans 6.8, and that just Rocks!!. If the Zend Framework support is going to be like the Symfony support, there are comming great times for Netbeans.... Congratulations to Netbeans Developer Comunity!!!

    PD: Excuse me for my English

  • Dario Monday, January 11, 2010

    I'm using another php framework named Yii (http://www.yiiframework.com) and I think that ZF plugin can be used as base to develop Yii plugin for NetBeans. Where can I download sources of existing ZendFramework plugin?

    Thank you.

  • Tomas Mysik Monday, January 11, 2010

    TO Dario:

    See http://wiki.netbeans.org/WorkingWithNetBeansSources, the name of the module is php.zend (you will need implementation dependency on php.api.phpmodule module).



  • nadrian Monday, January 11, 2010

    Great IDE for PHP development. As symphony is supported, I presume that is just of matter of a few adjustments to also support cakePHP - another MVC framework for PHP.

    Keep up the good work!

  • nunclelei nunclelei Wednesday, January 13, 2010

    can make the framework support as a plugin of netbeans?

  • Tomas Mysik Wednesday, January 13, 2010

    To nunclelei nunclelei:

    It is NB plugin but you must use the development version of NetBeans (follow the link in the article).

  • Nicolas Thursday, January 14, 2010

    bertram.netbeans.org unreachable

  • dream3r Monday, January 18, 2010

    Great news. One question: how can we add ZF support for existing projects?

  • luis molina Thursday, January 21, 2010

    hi, why not like plugin?, i mean it is more interesting like a plugin.

  • thinsoldier Friday, January 22, 2010

    I've got a problem with that /\* @var $media Book \*/ example from this post:


    Some of my files only have working autocompletion if I write the comment like

    /\*\* @var Book $media \*/

    Others only work if i write the comment like

    /\* @var $media Book \*/

  • Marco Monday, January 25, 2010

    There is no need to force it i have always the antialias active on linux

  • Marco Monday, January 25, 2010

    I would like to rememebr to netbeans core developers the issue about subversion support in the ide. The issue about the ssh password always prompted to the user

  • Kurt Krueckeberg Thursday, January 28, 2010

    As a satisfied Netbeans user for PHP development, I am very please to see that support for ZF is being added. I have wanted to get into ZF but didn't want to learn a new IDE.


  • rodp Thursday, February 4, 2010

    Great work, but I have a problem.

    Creating a new project works fine, but when I go run a zend command, there is a message saying "<There is no command available (perhaps error?)>"

    in the Matching Tasks field.

    I can run zf commands in command prompt perfectly fine.

    What am I missing?

  • Filipe Costa Thursday, February 11, 2010

    I can't find the tab in the PHP options to configure Zend Framework.

    I have NetBeans IDE 6.8 (Build 200912091457).

    How can i solve this?

  • cdi3d Wednesday, February 24, 2010

    What is the current state of smarty support? It looks like the community driven plugin hasnt been updated in some time.

  • Francisco Ortiz Pe&ntilde;aloza Thursday, February 25, 2010


    Using 6.9m1 with a recently created Zend Framework project i tried to create a test using the "Tools/Create PHPUnit Tests" option for the generated IndexController.

    In the output window i've got this

    Fatal error: Class 'Zend_Controller_Action' not found in /Users/patchinko/Sites/prueba/application/controllers/IndexController.php on line 3

    Call Stack:

    0.0016 55832 1. {main}() /usr/local/bin/phpunit:0

    0.2069 4180112 2. PHPUnit_TextUI_Command::main() /usr/local/bin/phpunit:54

    0.2069 4180824 3. PHPUnit_TextUI_Command->run() /usr/local/PEAR/PHPUnit/TextUI/Command.php:146

    0.2069 4183432 4. PHPUnit_TextUI_Command->handleArguments() /usr/local/PEAR/PHPUnit/TextUI/Command.php:155

    0.2110 4274472 5. ReflectionClass->newInstanceArgs() /usr/local/PEAR/PHPUnit/TextUI/Command.php:850

    0.2110 4275008 6. PHPUnit_Util_Skeleton_Test->__construct() /usr/local/PEAR/PHPUnit/Util/Skeleton/Test.php:0

    0.2112 4279632 7. include_once('/Users/patchinko/Sites/prueba/application/controllers/IndexController.php') /usr/local/PEAR/PHPUnit/Util/Skeleton/Test.php:127

    I had to add the path to the zf library directory to my php.ini and prepend

    require_once 'Zend/Controller/Action.php'

    to my IndexController file to get it right.

    Once the test created you could delete the require_once statement cause testing a zf app usually requires a context (resources) so in your tests bootstrap file you could enable the Autoload feature.

    And i would love to have the chance of passing parametters to phpunit script like --include-path and avoid editing the php.ini

    I think this should be a project not a global setting, in fact passing "PHP Include Path" from project settings could be a workaround.


    Francisco Ortiz Peñaloza

    PD: Sorry about my english :)

  • Federico Arriola Thursday, March 4, 2010

    Hi .

    Is there a way to say to netbeans that an already php netbeans project created with netbeans 6.8 is using Zend Framework, to be able to recognize the ZF Tool ??

  • nihdalas Monday, March 8, 2010

    ongrats nice work.good for all users.i wish to say something about a PHP frame work called as NOLOH NOLOH specialties are, it can be connected to any database with ease. NOLOH is very safe and dependable. The NOLOH objects can be extended very easily. So it is completely flexible. NOLOH supports automatic error-handling. The syntax is easy to understand. Any PHP programmers can easily work with the NOLOH syntax. It contains fully customizable controls from basic to complex ones. It provides Automatic State Management. It manages all applications and user view state for the developer automatically. It also maintains a smooth communication between client and server. so just check this out....

  • Jeffrey Rubinoff Saturday, March 13, 2010

    Hey, I've just run the official ZF quickstart tutorial, trying to get the basis of a screencast.

    I used MySQL (in the XAMPP stack) instead of their suggested sqlite server. I handcoded the alternate application.ini changes, following some instructions on the ZF forums (http://www.zfforums.com/zend-framework-general-discussions-1/general-q-zend-framework-2/zf-quickstart-mysql-2796.html), instead of passing it all as parameters in the "configure db-adapter" command. Also, I did not like the look of the sqlite.php script, so I used NB db features to create the databases, tables, and indexes.

    What I'd like to know is if any of you out there who used NB and MySQL to run this tutorial configured the db adapter using only the configure db-adapter command + parameters? And did any of you use the sqlite.php script or a variant of it? I know at least one other NB person ran this tutorial from the comments!

  • deerawan Sunday, March 14, 2010

    this is what i'm looking for. Integration with Zend Framework is one big step for php netbeans. Keep up good work.

  • jmcbade Tuesday, May 4, 2010

    Will ZF be the only "officially" supported framework? I heard or read somewhere that CakePHP was also possibly to be supported? I am also kinda interested in Yii.

    Keep at it please. We LOVE your work!

  • Benjamin Friday, October 15, 2010

    I have experimented with Netbeans off and on over the years and there was always something making it unusable for me. As of 6.9, I feel like it has become everything I needed it to be and it is so easy to use. I have fallen in love with Netbeans and I don't see myself leaving it for another IDE whether I am working in PHP or Ruby.

  • Chris Wednesday, November 10, 2010

    The view support is not working for me :(

Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.