[size="4"]When we develop our project on localhost.
we download many extension using composer.
but sometimes, we deploy our project on shared host and develop both local and server.
in that case, how could we fit our composer updated extension in server.
we can do that using following:[/size]
[size="5"][BEFORE EVERY STEP YOU CAN TAKE A BACKUP OF FILES AND FOLDER THAT ARE MENTIONED BELOW][/size]
[size="3"]1. Zip and Upload local host [vendor/composer] folder to server projects [vendor/composer]. Then after upload extract the composer zip folder.
Upload and override local [vendor/autoload.php] to server projects [vendor/autoload.php]
Upload and override local [vendor/yiisoft/extensions.php] to server projects [vendor/yiisoft/extensions.php]
Now zip and upload the extension folder from local [ex: vendor/kartik-v] to server projects [vendor] and extract it there.
Upload and override composer.json from localhost project root to server project root [ optional, but it may require in future ][/size]