Answer the question
In order to leave comments, you need to log in
Is it possible in Laravel 5 to install a package without composer on shared hosting?
Hello. Can you please tell me if it is possible to install a package in Laravel 5 without composer update? The matter is that the project lies on a hosting. I needed to install the "barryvdh/laravel-dompdf": "v0.6.1" package. I did everything on the local machine, everything works. And how now to transfer all this to the hosting? I transferred all the files by hand, but Class 'Barryvdh\DomPDF\ServiceProvider' not found Yes, I forgot to say, there is no composer on the hosting and the hoster does not allow to install it.
Answer the question
In order to leave comments, you need to log in
If you have ssh access, you can drop the composer.phar file there and run the command php composer.phar update
.
If there is no ssh, then you need to download everything else from the vendor/composer folder. The generated autoload file is stored there.
composer and should not be used in hosting.
You install all the packages on the build machine (in your case locally) and upload them (in your case without automation tools).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question