How to download the extension for Yii2 hosting?

On LAN I can download any extension for Yii 2, for example via Composer:
composer require kartik-v/yii2-widget-datepicker "@dev"

Now, this extension to upload to a hosting? As I understand it, it is somewhere in the vendor installed? Just now I'm entire folder with the project to re-flood to the host, but obviously there are ways easier
April 7th 20 at 15:17
1 answer
April 7th 20 at 15:19
1. Find out on hosting the composer. If set, then you're in luck. You have more convenient work with the project. Pour all of the files and the file composer.json. Then php composer update And all. The project is established. But rejoice not worth it. Set the composer on a hosting is not always happiness. So what is installed globally and you do not have admin rights, he can not allow to create temporary files type .cache, and others. Then you have to Dodge and change the way to store these files and composer.json the config.

2. If you have a very sad case, you can download the latest package of composer (composer.phar). Throw it in the project folder and install packages through the command php composer.phar update

3. If neither does not work, then install the packages on the local machine and just update the vendor folder with every change. I hope this will not happen.

Find more questions by tags ComposerYii