K
K
Konstantin2016-02-12 14:03:15
Composer
Konstantin, 2016-02-12 14:03:15

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

3 answer(s)
S
Stanislav Pochepko, 2016-02-12
@kostik34

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.

O
OnYourLips, 2016-02-12
@OnYourLips

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).

E
Eugene, 2016-02-12
@Nc_Soft

You probably didn’t transfer all the files, you need to transfer the entire vendor folder.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question