An Oracle blog about NetBeans for PHP

Initial support for Symfony2

Hi all, today we would like to show you how you can develop your Symfony2 projects with Twig templates in NetBeans 7.1.

First, you need to download RC version of NetBeans 7.1. Then, among available plugins (Tools > Plugins), there is a Symfony2 plugin. This plugin (which will be part of the next version of NetBeans) now provides just the basic support for Symfony2 framework as can be seen on its homepage:

  • Run Comand
  • Create new Symfony2 project

For editing Twig templates, this plugin registers the built-in Smarty support - yes, this is definitely far from perfect. Much better solution is to download and use the Twig support for NetBeans written by Sebastian Hörl. BTW this plugin will be part of the next version of NetBeans - thanks a lot Sebastian for your contribution!

Twig support in NetBeans 7.1 via custom plugin

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

Join the discussion

Comments ( 9 )
  • EgrettaThula Monday, December 5, 2011

    Great news, thanks.

  • Daniel Gafitescu Monday, December 5, 2011

    Really great news , I hate to gave open the command line separate to the editor and most of the time mistype something.

  • pulzarraider Monday, December 5, 2011

    Super! Please, continue making it better.

  • Craig Marvelley Tuesday, December 6, 2011

    Thanks guys, looking forward to using it!

  • guest Wednesday, December 7, 2011


  • Jérémy Sunday, December 11, 2011

    There is still a lot of work to do to catch up with Eclipse SF2 support.

  • guest Sunday, December 11, 2011

    This is great to see, although I'm skeptical as to how comprehensive the support will ever be.

    I've created some issues on the NetBeans bug tracker to note the kind of features that would be required to really qualify as Symfony2 support.

    The problem now is that Netbeans is going to go around telling everybody that they have Symfony2 support, when really it's so light, it can hardly be considered worthwhile.

    That all said, PHP namespaces support in general in Netbeans is extremely good. But I think what we have so far is just a sliver of what needs to be done.

  • guest Sunday, December 11, 2011

    Doesn't work.

    Some plugins require plugin Options Dialog and SPI to be installed.

    The plugin Options Dialog and SPI is requested in version >= 1.24 but only 1.23.1 was found.

    The plugin PHP APIs is requested in version >= 1.53 but only 1.51.1 was found.

    The plugin Lookup API is requested in version >= 8.11 but only 8.10.1 was found.

    runnning 7.1beta, dl+installed today no updates available.

    so how I can install this ?

  • Christian Friday, December 16, 2011


    It's nice to see the Twig Plugin written by Sebastian Hörl integrated into Netbeans. Twig is really a nice template engine - easy to learn and to extend.

    Thank you for your work.

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