How do I install composer dependencies in Eclipse PDT?

241 views Asked by At

I recently installed Eclipse PDT and I am having trouble installing composer dependencies. This is the button to install dependencies:

screenshot install dependencies

When I click the button, the console view appears and displays the (very) uninformative text: "Could not open input file: Files". I used the native terminal to manually run composer update, but I want to be able to use the Eclipse integration.

How can I make the composer integration work so I can install my dependencies?

1

There are 1 answers

2
Ramon Soarez On BEST ANSWER

Go to "Window" > "Preferences" expand the "PHP" > Tools section > and select "Composer". And check the path to the composer.phar file or just composer if it is in your PATH , you can also check the path to the PHP executable. After applying test the dependency installation again.enter image description here

If you don't have the package installed, access help > install new software... select all available sites and search for php packages, select and install. Then try the procedure above. enter image description here