This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 246195 - composer create-project on New Project
Summary: composer create-project on New Project
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-01 15:15 UTC by waldermort
Modified: 2015-09-03 19:49 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description waldermort 2014-08-01 15:15:23 UTC
The New Project wizard (Step 5: Composer) is great for selecting a package and version, but, it doesn't create the project.

"composer require xxx" is run rather than "composer create-project xxx".

In addition to this a standard index.php (for a PHP project) is created in the root folder.

An earlier enhancment request https://netbeans.org/bugzilla/show_bug.cgi?id=228399 (marked as FIXED) says this will be available after version 7.4, This does not seem to be the case.

Perhaps that Composer Wizard page should have a check box indicating "use create-project" and default to using "require".
Comment 1 Tomas Stupka 2014-08-20 16:48:27 UTC
php?
Comment 2 deresh 2014-09-11 20:36:25 UTC
what is the status of this issue? This shouldn't require much work.
Comment 3 Tomas Mysik 2014-09-12 06:05:41 UTC
Not so easy as it could seem to be, sorry.
Comment 4 svierkant 2014-11-07 13:36:31 UTC
@waldermort: the earlier request was something different, but I agree that this is a very important feature.

You can't create a (i.e. Symfony2) project in NetBeans. This is the only step that I have to take in the terminal. The support for Symfony2 (or composer in general) is OK, but this is very important.
Comment 5 joao_neto 2015-04-13 13:18:27 UTC
+1 for this enhacement
Comment 6 joao_neto 2015-04-13 13:20:19 UTC
but I think this feature should not be in the window "New Project", but in the "Team" menu. Like Team -> Composer -> Import Composer Project and after create a Netbeans project.
Comment 7 Tomas Mysik 2015-04-14 07:09:25 UTC
BTW in the development version of NetBeans, one can simply open a directory with composer.json file as a NetBeans project. Feel free to test it and report issues you find.

Thanks.