Quantcast
Channel: dubture | blog
Viewing all articles
Browse latest Browse all 7

New Symfony / Composer Wizards available

$
0
0

The Symfony& Composer Eclipse plugins have just been updated with new Wizards providing handy new functionality.

Please note that the new Wizards now require a valid PHP executable to be configured in Eclipse. If you haven't done so yet, simply select "Preferences -> PHP -> PHP Executables" and point Eclipse to your local PHP executable.

When updating to the new versions, you might need to reset your PHP perspective: "Window -> Reset perspective..." so the new wizards are available in your "New..." context menu.

Symfony Project Wizard rewritten

The wizard for creating new Symfony projects has been rewritten from scratch and is now based on Composers create-project command.


New Symfony project wizard


If you have setup a local server in Eclipse, it will provide a choice to create the project inside the webroot of your server and automatically create a new debug configuration with the correct settings, so you can start running your project in debug mode using XDebug right away. This has been a tedious manual step so far which is taken care of now by the wizard, which results in a debug configuration similar to this one:




The second page of the wizard now provides a dialog to override the composer.json settings from the default Symfony-Standard-Editions composer file:





Composer project from existing package

This new composer dialog makes use of the create-project command and provides a convenient way to browse packagist.org for projects or packages to start working with.

The first page contains the usual location and composer settings fields:



The second page lets you browse packagist.org for existing packages. You can use the "Show projects only" flag to show only packages with the type "project".



Click the Star button to open the project on packagist.org or the Download button to select the package and finish the dialog using the selected package.


Import Wizards


There are 2 new wizards to import existing projects into Eclipse. This now the preferred way to pull existing Composer/Symfony projects into your workspace, as these dialogs will automatically try to detect various aspects of your project and setup everything accordingly.

You can find them under "File -> Import -> PHP":




Import Symfony Project


To import a Symfony project, simply browse for your existing project using the "Source folder" field. The wizard will try to detect the dumped service container and the Symfony console script automatically. You can change these 2 files if needed.




Import Composer Project


If you want to import a regular composer project, use the "Import Composer Project" dialog, which works in a similar way:











Viewing all articles
Browse latest Browse all 7

Latest Images

Trending Articles





Latest Images