Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

teampoison's avatar

on laravel folder there are no composer.json

i download one laravel project from my server than in this vendor folder are already but composer.json not found. if i run any composer command then its tell no composer.json found how i add composer.json with help of vendor folder on any other.

0 likes
11 replies
Tray2's avatar

@teampoison So you don't have a git repository for it?

You really shouldn't just download files like that.

Tray2's avatar

@teampoison Which version of Laravel are you using in the project?

If you don't have a composer.json file in your project on the live server, then maybe , just maybe you can create a new project with the same version of laravel and copy the composer.json over. I don't recommend it since you don't have a clue what you are doing. You then need to require all dev and production dependencies manually.

Sinnbeck's avatar

Who made the project? Ask them to supply the composer.json file

Sinnbeck's avatar

@teampoison only manually. You need to figure out which packages are required by the app and install those. But that might take a few days of guessing

jlrdw's avatar

@teampoison or just create new project and migrate the code over to it.

Or get the composer file from the Repository. Which do you need laravel or framework. You can get either.

jlrdw's avatar

@teampoison by migrate over means copying over the controllers, models, views, etc of the code you made. But you should be able to just get the missing composer.json file from the repository.

Please or to participate in this conversation.