X

An Oracle blog about NetBeans for PHP

Add project dependency via Composer

Hi all, NetBeans 7.3 is already out so it is a time for implementing new features for the next version of NetBeans. Today, we will have a look at the improvements in the Composer support.

 Composer is a Dependency Manager for PHP so it should be really possible to add dependencies to your PHP projects, right? Fortunately, this feature has been implemented and can be tested in the current development version of NetBeans. How it works? It is very simple, just invoke the proper action:

Add dependency

Dialog for searching and adding packages is displayed:

Dialog for Composer packages

Now, just select appropriate package, choose the version and hit Require or Require (dev) button. NetBeans uses Composer for all these actions (unfortunately, the speed of these actions could be far better) so complete logs of all actions can be reviewed in the Output window:

Composer log in Output window

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 Composer).

Join the discussion

Comments ( 3 )
  • Songo Thursday, March 14, 2013

    Thanks for the new feature.

    Can I ask if there are any plans to add a BDD (Behavior Driven Development) framework support to Netbeans?

    Can we expect support for Behat for example in the future?


  • Tomas Mysik Friday, March 15, 2013

    To Songo:

    Please, use NetBeans Bugzilla for all requests and bug reports.

    Thanks.


  • guest Friday, March 15, 2013

    Hi,

    Great feature! I World also love to see Composer support also for subdirectories, we allways have a separate composer.json in tests/


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

Integrated Cloud Applications & Platform Services