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

Comments:

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?

Posted by Songo on March 14, 2013 at 09:21 PM CET #

To Songo:

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

Thanks.

Posted by Tomas Mysik on March 15, 2013 at 07:15 AM CET #

Hi,

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

Posted by guest on March 15, 2013 at 05:42 PM CET #

Post a Comment:
  • HTML Syntax: NOT allowed
About

This blogs is written by NetBeans developers who contribute to the PHP support mainly.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today