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

loom's avatar
Level 4

Composer install on deployment server with no internet

I have an internal web app written using Laravel. The production has NO internet connection and will not. On initial deployment I had copied the vendor directory over from dev and ran composer dump-autoload to get things installed. That was some time ago. Now I need to add 'predis' to the production server. Copying the predis directory to the production vendor dir and running 'composer dump-autoload' does not work. So, how can I get Composer installs transferred to a server that has no internet connection? Dev environment has internet connection of course.

Using Windows 7/ WAMP Thanks

0 likes
2 replies
loom's avatar
Level 4

Ok. I assumed that some composer files from the vendor/composer dir were needed as well so I just just copied the entire vendor directory over again then ran 'composer dump-autoload' and the problem seems to be resolved.

tisuchi's avatar

Can give a try to update composer in your dev environment and transfer all the files in production environment manually.

Please or to participate in this conversation.