Omer
Omer

Reputation: 163

composer - vendor folder empty

I got a website which I need to maintain and after looking at the files and code, I thought there are some missing files in project/vendor folder.

After talking to the current maintainer, he told me I need to use composer in order to see those files. I have installed composer but I don't know how to "fill" the folder with the files.

From reading online I understood I need to extract and install dependencies using the composer.json file but even after searching the web for more then an hour I didn't find how to do it.

Upvotes: 1

Views: 4448

Answers (3)

Omer
Omer

Reputation: 163

Apparently I had to install php7.0-curl using the sudo apt-get install php7.0-curl.

After that I just used composer install again and it's good now

Upvotes: 0

Yves Kipondo
Yves Kipondo

Reputation: 5633

Go to the root of you project and run

composer install

after that composer will download all package that are in the composer.json file in the require and require-dev section

Upvotes: 1

Rodrigo Barreto
Rodrigo Barreto

Reputation: 1

First, install the composer, take a look here composer, after this try to run composer install, in some cases I do update with composer update too.

Remember to run the command composer install on the same path where composer.json

Upvotes: 0

Related Questions