Composer support

Hi all, today we would like to introduce you our Composer support which will be present in NetBeans 7.3. If anyone of you does not know Composer yet, please be informed that:

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

So, what support do we have in NetBeans? The first step, as usually, is to open the Composer IDE Options panel:

Composer NetBeans IDE Options

Once it is configured properly, it is time to create composer.json file where we can define dependencies (libraries) of our PHP project:

Create composer.json file

The generated file is opened so we can review it and add any libraries: 

Generated composer.json

Now, you are ready to install, update or validate library dependencies of your PHP project:

Validation of composer.json

We hope that you enjoy this initial support and that we will be able to improve it in the next version of NetBeans. 

 

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:

Great news!

What would also be useful is composer require support.

Posted by umpirsky on October 23, 2012 at 01:04 PM CEST #

I just noticed that composer does not install ''dev deps. If you are using IDE for composer install, you probably want dev dependencies, so it should run composer.phar install --dev

Posted by umpirsky on November 05, 2012 at 08:34 AM CET #

To umpirsky: I will have a look at it, thanks.

Posted by Tomas Mysik on November 05, 2012 at 08:50 AM CET #

To umpirsky & others: reported here [1] but closed as incomplete - we need more info what the ideal state should be sp please reopen this issue and provide your comments otherwise it will not be changed/fixed.

Thanks.
[1] http://netbeans.org/bugzilla/show_bug.cgi?id=221460

Posted by Tomas Mysik on November 05, 2012 at 09:07 AM CET #

How about support for 'composer dumpautoload'?

Posted by GaryJ on December 02, 2012 at 12:57 PM CET #

To GaryJ: Please, submit an issue. Thanks.

Posted by Tomas Mysik on December 03, 2012 at 06:51 AM CET #

I shouldn't need to create a new account just to submit an issue. I've made my suggestion, you've seen it, and as it's so related to the blog post, I'm surprised it's not been considered before, and either dismissed, or an existing developer within the community has not submitted their own issue.

Posted by GaryJ on December 03, 2012 at 11:40 PM CET #

To GaryJ: In NetBeans, we use Bugzilla for reporting bugs and enhancements, not any blogs, sorry (it would not be possible to watch so many blogs). So, if you found a bug or enhancement and want to help, please report it. Please notice that you are the only right person to do it - you have found it, you know the arguments, use case, steps to reproduce...

Thanks.

Posted by Tomas Mysik on December 04, 2012 at 06:40 AM CET #

obviously GariJ doesn't care enough

Posted by guest on June 30, 2013 at 11:42 AM CEST #

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